Kill container in new thread
This commit is contained in:
@ -278,7 +278,9 @@ class DockerClient
|
|||||||
sleep(1)
|
sleep(1)
|
||||||
@socket.close
|
@socket.close
|
||||||
end
|
end
|
||||||
kill_container(container)
|
Thread.new do
|
||||||
|
kill_container(container)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
#ensure
|
#ensure
|
||||||
# guarantee that the thread is releasing the DB connection after it is done
|
# guarantee that the thread is releasing the DB connection after it is done
|
||||||
|
Reference in New Issue
Block a user