mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-22 22:03:39 +03:00
M #-: close all ZMQ subscribers
This commit is contained in:
parent
d7a2f69841
commit
063c3fbef3
@ -254,6 +254,10 @@ class EventManager
|
||||
|
||||
next if !nodes.empty? && rc_nodes[:failure].empty?
|
||||
|
||||
nodes.each do |id|
|
||||
unsubscribe(id, state, lcm_state, subscriber)
|
||||
end
|
||||
|
||||
# If any node is in error wait action will fails
|
||||
return [false, rc_nodes] unless rc_nodes[:failure].empty?
|
||||
|
||||
@ -268,6 +272,8 @@ class EventManager
|
||||
rc_nodes[:successful] << id
|
||||
end
|
||||
|
||||
subscriber.close
|
||||
|
||||
[true, rc_nodes]
|
||||
end
|
||||
|
||||
@ -337,6 +343,8 @@ class EventManager
|
||||
|
||||
subscriber.setsockopt(ZMQ::UNSUBSCRIBE, 'EVENT API one.vm.update 1')
|
||||
|
||||
subscriber.close
|
||||
|
||||
[true, rc_nodes]
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user