diff options
Diffstat (limited to 'test/net/imap/test_imap.rb')
-rw-r--r-- | test/net/imap/test_imap.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index 8ccec642c0..01982ab815 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -435,9 +435,9 @@ class IMAPTest < Test::Unit::TestCase begin begin imap = yield(port) - imap.logout + imap.logout if !imap.disconnected? ensure - imap.disconnect if imap + imap.disconnect if imap && !imap.disconnected? end ensure server.close |