Forward exit message even if part of multiple lines

This commit is contained in:
Sebastian Serth
2021-01-20 22:16:04 +01:00
parent c6cad839e1
commit 6216786e3e

View File

@ -237,7 +237,7 @@ class SubmissionsController < ApplicationController
@raw_output ||= '' @raw_output ||= ''
@run_output ||= '' @run_output ||= ''
# Handle special commands first # Handle special commands first
if /^#exit|^{"cmd": "exit"}/.match(message) if /^#exit|{"cmd": "exit"}/.match(message)
# Just call exit_container on the docker_client. # Just call exit_container on the docker_client.
# Do not call kill_socket for the websocket to the client here. # Do not call kill_socket for the websocket to the client here.
# @docker_client.exit_container closes the socket to the container, # @docker_client.exit_container closes the socket to the container,