Reconnect the reused packetIO when deploying (#637)
This commit is contained in:
parent
801563a66c
commit
98acbc34f0
@ -83,8 +83,16 @@ namespace pxt.editor {
|
||||
packetIoPromise = null;
|
||||
return Promise.reject(err);
|
||||
});
|
||||
return packetIoPromise;
|
||||
} else {
|
||||
let packetIo: pxt.HF2.PacketIO;
|
||||
return packetIoPromise
|
||||
.then((io) => {
|
||||
packetIo = io;
|
||||
return io.reconnectAsync();
|
||||
})
|
||||
.then(() => packetIo);
|
||||
}
|
||||
return packetIoPromise;
|
||||
}
|
||||
|
||||
let previousDapWrapper: DAPWrapper;
|
||||
|
Loading…
Reference in New Issue
Block a user