mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Fixed rebroadcasting every frame up to 500 times
This commit is contained in:
1 parent
b2afea666e
commit
501807884f
1 file changed
+3
-3
@@ -841,10 +841,10 @@ function instanceManagement() {
|
||||
setTimeout(()=>{
|
||||
txBufferClearCounter++;
|
||||
fs.readFile(instancedirectory + "/script-output/txbuffer.txt", "utf-8", (err, signals) => {
|
||||
if(txBufferClearCounter > 500){
|
||||
//if(txBufferClearCounter > 500){
|
||||
fs.writeFileSync(instancedirectory + "/script-output/txbuffer.txt", "");
|
||||
txBufferClearCounter = 0;
|
||||
}
|
||||
// txBufferClearCounter = 0;
|
||||
//}
|
||||
console.log(signals);
|
||||
if (signals[0]) {
|
||||
fs.writeFileSync(instancedirectory + "/script-output/txbuffer.txt", "");
|
||||
|
||||
Reference in new issue
Block a user