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 CHANGED
@@ -1 +1 @@
1
- 0.4.14
1
+ 0.4.15
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{remailer}
8
- s.version = "0.4.14"
8
+ s.version = "0.4.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Tadman"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: remailer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.14
5
+ version: 0.4.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Scott Tadman