ione 1.2.0.pre7 → 1.2.0.pre8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ione/io/io_reactor.rb +11 -2
- data/lib/ione/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7877b339794b199432492b1cdb1eee2661ea1cad
|
4
|
+
data.tar.gz: fed2cbd02eda48abd7aa225740de42b039bc56cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82a13a762739bb9302f600d1ea3061391432b8e8a98e294808dae0d12db7865dbeac989ead14c440cdc866e4dc29e6e2761a14eb7508d96d812147c03aa9db24
|
7
|
+
data.tar.gz: 81adb0b983ace8e30f8cd27bd0061e6e230dded1ef68d46632b7a5ca2f08d87132bb32197bcfeb6a4ba8f2da06c9f394515ee7a6d972f233b235b6176f78ac58
|
data/lib/ione/io/io_reactor.rb
CHANGED
@@ -439,8 +439,17 @@ module Ione
|
|
439
439
|
end
|
440
440
|
|
441
441
|
def cancel_timers
|
442
|
-
|
443
|
-
|
442
|
+
timers = []
|
443
|
+
@lock.lock
|
444
|
+
begin
|
445
|
+
while (timer = @timer_queue.pop)
|
446
|
+
@pending_timers.delete(timer.future)
|
447
|
+
timers << timer
|
448
|
+
end
|
449
|
+
ensure
|
450
|
+
@lock.unlock
|
451
|
+
end
|
452
|
+
timers.each do |timer|
|
444
453
|
timer.fail(CancelledError.new)
|
445
454
|
end
|
446
455
|
end
|
data/lib/ione/version.rb
CHANGED