mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +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(() => {
|
setInterval(() => {
|
||||||
this.pollResearch();
|
this.pollResearch();
|
||||||
setTimeout(this.doSync, 2000);
|
setTimeout(this.doSync.bind(this), 2000);
|
||||||
}, extras.researchSyncPollInterval || 30000);
|
}, extras.researchSyncPollInterval || 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
pollResearch() {
|
pollResearch() {
|
||||||
|
|||||||
Reference in new issue
Block a user