Bug #2683 » imap_hang_fix.patch
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
|