sensu-em 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eef00d6da9754fb939c0d1c8cdc37957ea8cb7bf
4
- data.tar.gz: 6ac3d8bb0ffa979bb85ee2297b680d8f3ef546e7
3
+ metadata.gz: 6129dbabcaa4905269f9d8c4ee9b366c7b3a085b
4
+ data.tar.gz: d797eda792230d6aa56a5613e9acc65a240e5dfb
5
5
  SHA512:
6
- metadata.gz: 4b6094f142ccc80ab484e50551e8e7c57041c1cbbec982c506d79deb10f008c59bfe736bd07ce8aa4effcc74f027a8c8da8dc1557add3c0f663cf4ea5718e560
7
- data.tar.gz: 3bf7a5d247dc7ffdeeafeba19f81675ab48f7bd35542612c3ffe673ed7c5229d6a2ac0188a3036744d5a23b097fce4c163fee84185cab733b14232a05d3b962d
6
+ metadata.gz: aff44c9cd709a8bfa838441eb79c66fb4583cfbebb6db9b60c9a4451537e228c208f1700f630ebbc35bfbc2e34362697647f44c35ae574c21359d6d13b832b24
7
+ data.tar.gz: 005c6e3f834ee7b6f550778a7190b3b85f150505abe929f3d903278e6058ab9af9c10f2a95a99f64065eba5ca2166d8e0cfa29672d99f57318404c38dc88f8f8
@@ -5,7 +5,7 @@ require "em/version"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'sensu-em'
8
- s.version = '2.5.1'
8
+ s.version = '2.5.2'
9
9
  s.homepage = 'http://rubyeventmachine.com'
10
10
  s.rubyforge_project = 'eventmachine'
11
11
  s.licenses = ["Ruby", "GPL"]
@@ -128,9 +128,11 @@ public class EmReactor {
128
128
  callback.trigger(b, EventCode.EM_CONNECTION_UNBOUND, null, (long) 0);
129
129
  ec.close();
130
130
 
131
- EventableSocketChannel sc = (EventableSocketChannel) ec;
132
- if (sc != null && sc.isAttached())
133
- DetachedConnections.add (sc);
131
+ if (!(ec instanceof EventableDatagramChannel)) {
132
+ EventableSocketChannel sc = (EventableSocketChannel) ec;
133
+ if (sc != null && sc.isAttached())
134
+ DetachedConnections.add (sc);
135
+ }
134
136
  }
135
137
  }
136
138
  UnboundConnections.clear();
@@ -74,7 +74,15 @@ public class EventableDatagramChannel extends EventableChannel<DatagramPacket> {
74
74
  }
75
75
 
76
76
  public boolean scheduleClose (boolean afterWriting) {
77
- return false;
77
+ if (!afterWriting)
78
+ outboundQ.clear();
79
+
80
+ if (outboundQ.isEmpty())
81
+ return true;
82
+ else {
83
+ bCloseScheduled = true;
84
+ return false;
85
+ }
78
86
  }
79
87
 
80
88
  public void startTls() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-em
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Cianfrocca
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-04 00:00:00.000000000 Z
12
+ date: 2015-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit