Skip to content

Commit e60a343

Browse files
committed
Refactor closed socket detection to ClientServices class
1 parent 927b45d commit e60a343

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/modules/serial_console.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,7 @@ export function serialConsole() {
164164
if (action !== 'close') {
165165
action = 'close';
166166
displayTerminalConnectionStatus(null);
167-
168-
// Solo-484
169-
// Send the message if the connection has not closed
170-
// This is actually closing the terminal session.
171-
if (clientService.activeConnection) {
172-
clientService.wsSendSerialTerminal(action, port, 'none');
173-
}
167+
clientService.wsSendSerialTerminal(action, port, 'none');
174168
}
175169
logConsoleMessage(`Flushing the terminal buffer`);
176170
// Flush the serial terminal buffer

0 commit comments

Comments
 (0)