From 6216786e3e4ef0a332e663c26586035ecd45f15c Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 20 Jan 2021 22:16:04 +0100 Subject: [PATCH] Forward exit message even if part of multiple lines --- app/controllers/submissions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index d7c89506..44d47092 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -237,7 +237,7 @@ class SubmissionsController < ApplicationController @raw_output ||= '' @run_output ||= '' # Handle special commands first - if /^#exit|^{"cmd": "exit"}/.match(message) + if /^#exit|{"cmd": "exit"}/.match(message) # Just call exit_container on the docker_client. # Do not call kill_socket for the websocket to the client here. # @docker_client.exit_container closes the socket to the container,