Add reconnect when factorio complains about payload size

Sometimes the rcon lib messes up and delivers a 4x package that makes factorio stop responding to rcon and throw an error. We catch that error and attempt to reconnect.

Couldn't parse RCON data: Maximum payload size exceeded
This commit is contained in:
Danielv123 committed 2017-04-21 09:20:22 +02:00
1 parent 9971b9f5b3
commit 4db55a8857
2 files changed
+14 -2

No files matched your search

+2 -1
View File
@@ -32,6 +32,7 @@
"portfinder": "^1.0.9",
"request": "^2.79.0",
"simple-rcon": "^0.3.1",
"sync-request": "^4.0.1"
"sync-request": "^4.0.1",
"underscore": "^1.8.3"
}
}