We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a292c8 commit 4efbbe3Copy full SHA for 4efbbe3
xmcl-runtime/lib/services/PeerService.ts
@@ -81,6 +81,14 @@ export class PeerService extends StatefulService<PeerState> implements IPeerServ
81
// })
82
})
83
84
+ app.registryDisposer(async () => {
85
+ for (const peer of Object.values(this.peers)) {
86
+ peer.close()
87
+ }
88
+ this.discover.destroy()
89
+ this.discoverV6.destroy()
90
+ })
91
+
92
if (IS_DEV) {
93
const logger = this.app.getLogger('wrtc', 'wrtc')
94
initLogger('Verbose', (level, message) => {
0 commit comments