feat(bridge): connect when a pipe is already up after load fails
A failed load used to stay in the error state. If the pipe is already listening, connect instead, and keep retrying that case on later checks.
This commit is contained in:
3 files changed
+41
-1
No files matched your search
@@ -309,7 +309,9 @@ export class HookManager {
|
||||
this.runAutoLoad(session, autoLoad);
|
||||
continue;
|
||||
}
|
||||
if ((session.status === 'connecting' || session.status === 'disconnected')
|
||||
if ((session.status === 'connecting'
|
||||
|| session.status === 'disconnected'
|
||||
|| session.status === 'error')
|
||||
&& this.pipeWatcher.isPipeLive(session.pid)) {
|
||||
session.onPipeUp();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user