Skip to content

Commit cd38516

Browse files
author
Federico Fissore
committed
NetworkMonitor: avoid connecting if session is closed
1 parent 03f27cd commit cd38516

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/processing/app/NetworkMonitor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ private void tryConnect() throws JSchException, IOException {
8383
}
8484
}
8585

86+
if (!session.isConnected()) {
87+
return;
88+
}
8689
channel = session.openChannel("exec");
8790
((ChannelExec) channel).setCommand("telnet localhost 6571");
8891

0 commit comments

Comments
 (0)