mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Bug #260 wrong delete_at method, removed kill!
This commit is contained in:
parent
d548ee264d
commit
5e083026af
@ -151,7 +151,7 @@ class ActionManager
|
||||
@threads_cond.signal
|
||||
else
|
||||
i = @action_queue.select{|x| x[:id] == action_id}.first
|
||||
@action_queue.delete_at(i) if i
|
||||
@action_queue.delete(i) if i
|
||||
end
|
||||
}
|
||||
end
|
||||
|
@ -71,7 +71,7 @@ class OpenNebulaDriver < ActionManager
|
||||
def start_driver
|
||||
loop_thread = Thread.new { loop }
|
||||
start_listener
|
||||
loop_thread.kill!
|
||||
loop_thread.kill
|
||||
end
|
||||
|
||||
private
|
||||
|
Loading…
x
Reference in New Issue
Block a user