vmail 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/imap_client.rb +3 -3
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail/imap_client.rb
CHANGED
@@ -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
|
-
|
569
|
+
reconnect_if_necessary(10, &block)
|
570
570
|
end
|
571
571
|
else
|
572
|
-
|
572
|
+
block.call
|
573
573
|
end
|
574
574
|
end
|
575
575
|
|
data/lib/vmail/version.rb
CHANGED