MCPcopy Create free account
hub / github.com/SoHeil-R/google-traffic-bot / driverTimeout

Function driverTimeout

libs/index.js:154–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153var usedDriver = 0
154async function driverTimeout(){
155 setInterval(async () => {
156 if (driverList.length > 0)
157 for (var i = 0; i < driverList.length; i++){
158 if(Date.now() - driverList[i].time > 60000){
159 await driverList[i].driver.quit()
160 driverList.splice(i, 1)
161 }
162 }
163 }, 4000);
164}
165
166
167async function main(url, keyboard, count, option){

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected