This commit is contained in:
IndieKKY
2024-10-06 11:51:40 +08:00
parent fde80103d9
commit d7b274d338
5 changed files with 16 additions and 19 deletions

View File

@@ -101,9 +101,6 @@ class ExtensionMessage {
const portContext: PortContext = {id, name, port, portMessageHandler, ready: false}
this.portIdToPort.set(id, portContext)
// 开始监听
portMessageHandler.startListen()
// 监听断开连接
port.onDisconnect.addListener(() => {
this.portIdToPort.delete(id)