From 207ff90fc8bd403d261ae5473a6ab56a48646457 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Wed, 11 Nov 2015 00:25:26 +0100 Subject: [PATCH] remove this again. it caused immediate exit. --- lib/docker_client.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docker_client.rb b/lib/docker_client.rb index 18b80f56..654c6504 100644 --- a/lib/docker_client.rb +++ b/lib/docker_client.rb @@ -174,7 +174,7 @@ class DockerClient We need to start a second thread to kill the websocket connection, as it is impossible to determine whether further input is requested. """ - begin + #begin @thread = Thread.new do timeout = @execution_environment.permitted_execution_time.to_i # seconds sleep(timeout) @@ -187,10 +187,10 @@ class DockerClient kill_container(container) end end - ensure + #ensure # guarantee that the thread is releasing the DB connection after it is done - ActiveRecord::Base.connectionpool.releaseconnection - end + # ActiveRecord::Base.connectionpool.releaseconnection + #end end def exit_container(container)