remailer 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/remailer/connection.rb +4 -0
- data/remailer.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.15
|
data/lib/remailer/connection.rb
CHANGED
@@ -294,6 +294,8 @@ class Remailer::Connection < EventMachine::Connection
|
|
294
294
|
end
|
295
295
|
elsif (@closed)
|
296
296
|
debug_notification(:disconnect, "Disconnected from remote.")
|
297
|
+
elsif (!@established)
|
298
|
+
error_notification(:hangup, "Disconnected from remote before fully established.")
|
297
299
|
else
|
298
300
|
debug_notification(:disconnect, "Disconnected by remote while connection was idle.")
|
299
301
|
end
|
@@ -500,6 +502,8 @@ class Remailer::Connection < EventMachine::Connection
|
|
500
502
|
def after_ready
|
501
503
|
return if (@active_message)
|
502
504
|
|
505
|
+
@established = true
|
506
|
+
|
503
507
|
reset_timeout!
|
504
508
|
|
505
509
|
if (@active_message = @messages.shift)
|
data/remailer.gemspec
CHANGED