right_agent 0.10.4 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -471,7 +471,8 @@ module RightScale
471
471
  Log.info("[stop] Terminating immediately")
472
472
  @termination_timer.cancel if @termination_timer
473
473
  @termination_timer = nil
474
- if blk then blk.call else EM.stop end
474
+ blk.call if blk
475
+ EM.stop
475
476
  else
476
477
  @terminating = true
477
478
  @check_status_timer.cancel if @check_status_timer
@@ -488,7 +489,7 @@ module RightScale
488
489
  request_count, request_age = @sender.terminate
489
490
  Log.info("[stop] The following #{request_count} requests initiated as recently as #{request_age} " +
490
491
  "seconds ago are being dropped:\n " + @sender.dump_requests.join("\n ")) if request_age
491
- @broker.close(&blk)
492
+ @broker.close(lambda { blk.call; EM.stop })
492
493
  EM.stop unless blk
493
494
  end
494
495
 
data/right_agent.gemspec CHANGED
@@ -24,8 +24,8 @@ require 'rubygems'
24
24
 
25
25
  Gem::Specification.new do |spec|
26
26
  spec.name = 'right_agent'
27
- spec.version = '0.10.4'
28
- spec.date = '2012-05-04'
27
+ spec.version = '0.10.5'
28
+ spec.date = '2012-05-08'
29
29
  spec.authors = ['Lee Kirchhoff', 'Raphael Simon', 'Tony Spataro']
30
30
  spec.email = 'lee@rightscale.com'
31
31
  spec.homepage = 'https://github.com/rightscale/right_agent'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_agent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 4
10
- version: 0.10.4
9
+ - 5
10
+ version: 0.10.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lee Kirchhoff
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-05-04 00:00:00 Z
20
+ date: 2012-05-08 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: right_support