*Bug fix pushRemote

This commit is contained in:
Derrick Hammer 2023-04-06 17:24:06 -04:00
parent ab4632b644
commit 54904ab1ad
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

View File

@ -638,6 +638,10 @@ module.exports = class Protomux {
this._remote[rid] = { state, pending: null, session: null };
if (this._slave) {
await this.pushRemote(remoteId);
}
session._remoteId = remoteId;
session._fullyOpen();
return;
@ -658,7 +662,7 @@ module.exports = class Protomux {
info.incoming.push(remoteId);
if (this._slave) {
await this.pushRemotes();
await this.pushRemote(remoteId);
}
this._requestSession(protocol, id, info).catch(this._safeDestroyBound);