1
0
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:
Ruben S. Montero 2010-07-19 18:53:20 +02:00
parent d548ee264d
commit 5e083026af
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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