diff --git a/lib/runner/connection.rb b/lib/runner/connection.rb index 7a58bd8f..150c7cb5 100644 --- a/lib/runner/connection.rb +++ b/lib/runner/connection.rb @@ -90,7 +90,7 @@ class Runner::Connection def ignored_sequence?(event_data) case event_data - when "#exit\r", "{\"cmd\": \"exit\"}\r" + when /#exit\r/, /\s*{"cmd": "exit"}\r/ # Do not forward. We will wait for the confirmed exit sent by the runner management. true else