vmail 1.3.8 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -563,13 +563,13 @@ EOF
563
563
  end
564
564
  end
565
565
 
566
- def spawn_thread_if_tty
566
+ def spawn_thread_if_tty(&block)
567
567
  if STDIN.tty?
568
568
  Thread.new do
569
- yield
569
+ reconnect_if_necessary(10, &block)
570
570
  end
571
571
  else
572
- yield
572
+ block.call
573
573
  end
574
574
  end
575
575
 
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "1.3.8"
2
+ VERSION = "1.3.9"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 8
9
- version: 1.3.8
8
+ - 9
9
+ version: 1.3.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi