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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f489ef2fde881a219194d545c1c2ab5a80f3647
4
- data.tar.gz: d6f2e0f0a5ae218c71a895c03b3635d74ef8c6cd
3
+ metadata.gz: 7877b339794b199432492b1cdb1eee2661ea1cad
4
+ data.tar.gz: fed2cbd02eda48abd7aa225740de42b039bc56cc
5
5
  SHA512:
6
- metadata.gz: 3d552c79337732c614279c4c531b42a20043f16949869a2587666b04cf59c4713ea85fbc09b2f6aa117f3706574c42168577db24db431d8528a5b13784064625
7
- data.tar.gz: 6b807b0167c0f7aef38520fa181d2d391f046b5cf4faeaaa68fc1a3ba12f88a14ac1427bde9da9e4eac8f6168febdf5ad90eb2e8f24995ecf8301c4ae13340d9
6
+ metadata.gz: 82a13a762739bb9302f600d1ea3061391432b8e8a98e294808dae0d12db7865dbeac989ead14c440cdc866e4dc29e6e2761a14eb7508d96d812147c03aa9db24
7
+ data.tar.gz: 81adb0b983ace8e30f8cd27bd0061e6e230dded1ef68d46632b7a5ca2f08d87132bb32197bcfeb6a4ba8f2da06c9f394515ee7a6d972f233b235b6176f78ac58
@@ -439,8 +439,17 @@ module Ione
439
439
  end
440
440
 
441
441
  def cancel_timers
442
- while (timer = @timer_queue.pop)
443
- @pending_timers.delete(timer.future)
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Ione
4
- VERSION = '1.2.0.pre7'.freeze
4
+ VERSION = '1.2.0.pre8'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ione
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.pre7
4
+ version: 1.2.0.pre8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo Hultberg