File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/kad-dht/src/routing-table Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ export class RoutingTable extends TypedEventEmitter<RoutingTableEvents> implemen
118
118
this . populateFromDatastoreOnStart = init . populateFromDatastoreOnStart ?? POPULATE_FROM_DATASTORE_ON_START
119
119
this . populateFromDatastoreLimit = init . populateFromDatastoreLimit ?? POPULATE_FROM_DATASTORE_LIMIT
120
120
this . shutdownController = new AbortController ( )
121
+ setMaxListeners ( Infinity , this . shutdownController . signal )
121
122
122
123
this . pingOldContactQueue = new PeerQueue ( {
123
124
concurrency : init . pingOldContactConcurrency ?? PING_OLD_CONTACT_CONCURRENCY ,
@@ -190,6 +191,8 @@ export class RoutingTable extends TypedEventEmitter<RoutingTableEvents> implemen
190
191
this . running = true
191
192
192
193
this . shutdownController = new AbortController ( )
194
+ setMaxListeners ( Infinity , this . shutdownController . signal )
195
+
193
196
await start ( this . closestPeerTagger , this . kb )
194
197
}
195
198
You can’t perform that action at this time.
0 commit comments