Project

General

Profile

Bug #2683 » imap_hang_fix.patch

bpot (Bob Potter), 01/29/2010 10:57 AM

View differences:

lib/net/imap.rb
break
end
begin
break_loop = false
synchronize do
case resp
when TaggedResponse
......
if resp.name == "BYE" && @logout_command_tag.nil?
@sock.close
@exception = ByeResponseError.new(resp)
break
break_loop = true
end
when ContinuationRequest
@continuation_request_arrival.signal
......
handler.call(resp)
end
end
break if break_loop
rescue Exception => e
@exception = e
synchronize do
(1-1/2)