This commit is contained in:
spiduler
2020-10-24 23:59:26 +09:00
parent d670773a0f
commit 3ca70140b1

View File

@@ -16,7 +16,7 @@ class SeleniumBrowser {
this.capabilities = Capabilities.chrome() this.capabilities = Capabilities.chrome()
this.sleep = m => new Promise(r => setTimeout(r, m)) this.sleep = m => new Promise(r => setTimeout(r, m))
this.createPool() this.createPool()
setInterval(this.createPool, 1000 * 60) setInterval(() => this.reCreatePool(), 1000 * 60)
} }
reCreatePool() { reCreatePool() {