mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Fixed weird thing about rebinding 'this'
This commit is contained in:
1 parent
7915b71e10
commit
aeeb09a975
1 file changed
+2
-2
@@ -12,8 +12,8 @@ class ResearchSync {
|
||||
|
||||
setInterval(() => {
|
||||
this.pollResearch();
|
||||
setTimeout(this.doSync, 2000);
|
||||
}, extras.researchSyncPollInterval || 30000);
|
||||
setTimeout(this.doSync.bind(this), 2000);
|
||||
}, extras.researchSyncPollInterval || 5000);
|
||||
}
|
||||
|
||||
pollResearch() {
|
||||
|
||||
Reference in new issue
Block a user