mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Increase libLink event emitter leak warning limit (#600)
This commit is contained in:
1 parent
2075814ed1
commit
a68bb9c0a8
1 file changed
+3
@@ -107,6 +107,9 @@ export class Link {
|
|||||||
) {
|
) {
|
||||||
this.handle(libData.PingRequest, async () => {});
|
this.handle(libData.PingRequest, async () => {});
|
||||||
|
|
||||||
|
// Prevent warnings about possible memory leak due to large number of event listeners
|
||||||
|
connector.setMaxListeners(20);
|
||||||
|
|
||||||
// Process messages received by the connector
|
// Process messages received by the connector
|
||||||
connector.on("message", payload => {
|
connector.on("message", payload => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user