             if err || !content.wvw_matches?.length
                 log 'Error: There was an error or empty response. Retrying in 10 seconds'
                 clearTimeout @_timeout if @_timeout
-                delay 10000, => @getMatches 
+                delay 10000, => @getMatches() 
             @matches = []
             nearestEndTime
             for match in content.wvw_matches

        if @updateIndex >= @matches.length
            @updateIndex = 0

module.exports = Crawler
            clearTimeout @_timeout if @_timeout
            diff = Math.min(3600000, nearestEndTime - +new Date)

            delay diff, => @getMatches() 

            @emit 'matches', @matches
            log "done (#{@matches.length}, reloading matches in #{Math.round(diff/1000/60)}m)"

    getDetails: ( match ) ->
        # log 'Loading details for match ' + match.wvw_match_id
        request { url: @detailUrl + '?match_id=' +  match.wvw_match_id, json:true }, ( err, response, content ) =>
            @emit 'details', match, content

