vmail 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,8 +41,11 @@ module Vmail
41
41
 
42
42
  def close
43
43
  log "closing connection"
44
- @imap.close rescue Net::IMAP::BadResponseError
45
- @imap.disconnect rescue IOError
44
+ Timeout::timeout(10) do
45
+ @imap.close rescue Net::IMAP::BadResponseError
46
+ @imap.disconnect rescue IOError
47
+ end
48
+ rescue Timeout::Error
46
49
  end
47
50
 
48
51
  def select_mailbox(mailbox, force=false)
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 4
9
- version: 0.8.4
8
+ - 5
9
+ version: 0.8.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi