em-zmq-tp10 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -124,12 +124,17 @@ module EM
|
|
124
124
|
@connections.clear
|
125
125
|
@conn_addresses.clear
|
126
126
|
@reconnect_timers.each{|_, timer| EM.cancel_timer(timer)}
|
127
|
+
cb ||= block
|
127
128
|
unless @peers.empty?
|
128
|
-
|
129
|
-
|
130
|
-
|
129
|
+
if cb
|
130
|
+
@after_writting = cb
|
131
|
+
flush_all_queue
|
132
|
+
@peers.values.each{|c| c.close_connection(true)}
|
133
|
+
else
|
134
|
+
@peers.values.each{|c| c.close_connection}
|
135
|
+
end
|
131
136
|
else
|
132
|
-
EM.next_tick
|
137
|
+
EM.next_tick(cb) if cb
|
133
138
|
end
|
134
139
|
@bindings.each{|c|
|
135
140
|
unless String === c
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: em-zmq-tp10
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.12
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sokolov Yura 'funny-falcon'
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|