Keep shell processes alive between network offline periods (#4258)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-09 12:30:55 -05:00
1 parent 8de3cbe5ee
commit e5bf5920fc
6 files changed
+141 -29

No files matched your search

+7 -1
View File
@@ -73,7 +73,13 @@ export class TerminalApi extends WebSocketApi {
}
async connect() {
this.emitStatus("Connecting ...");
if (!this.socket) {
/**
* Only emit this message if we are not "reconnecting", so as to keep the
* output display clean when the computer wakes from sleep
*/
this.emitStatus("Connecting ...");
}
const shellToken = await ipcRenderer.invoke("cluster:shell-api", getHostedClusterId(), this.query.id);
const { hostname, protocol, port } = location;