function checkNext() {
    counter = (counter + 1);
    if (counter > max) {
        cleanup();
    } else {
        // Be slightly nice and wait a quarter of a second between requests
        // ... Or maybe 1 second I guess.
        //sleep.sleep(1);
        sleep.usleep(125000);
        
        var current = {counter: counter};
        fs.writeFileSync("settings.json", JSON.stringify(current));
        
        // Start the next request
        getWebpage(wordlist[counter]);
    }
}
// after a very small timeout.
after a very small timeout.
after a very small timeout .
function checkNext() {
    counter = (counter + 1);
    if (counter > max) {
        cleanup();
    } else {
        sleep.usleep(125000);
        var current = {counter: counter};
        fs.writeFileSync("settings.json", JSON.stringify(current));
        getWebpage(wordlist[counter]);
    }
}
function checkNext ( ) { counter = ( counter + 1 ) ; if ( counter > max ) { cleanup ( ) ; } else { sleep . usleep ( 125000 ) ; var current = { counter : counter } ; fs . writeFileSync ( "settings.json" , JSON . stringify ( current ) ) ; getWebpage ( wordlist [ counter ] ) ; } }
after a very small timeout.
after a very small timeout .
// Be slightly nice and wait a quarter of a second between requests // ... Or maybe 1 second I guess. //sleep.sleep(1); // Start the next request