     if @listeners.length == 1
       setImmediate =>
         if @active
-          @active._eventQueue.resume()
           @run()
 
     return promise

    timer.stop() if timer
    return

  # Used when window goes out of focus, prevents timers from firing
  suspend: ->
    for timer in @timers
      timer.suspend() if timer

  # Used when window goes back in focus, resumes timers
  resume: ->
    for timer in @timers
      timer.resume() if timer

  # Returns the timestamp of the next timer event
  next: ->
    next = Infinity

  # handle  - Node.js timeout handle
  constructor: (@queue, @fn, @delay, @remove)->
    @delay = Math.max(@delay || 0, 0)
    # When timeout fires, queue event for processing during a wait.
    fire = =>
      @queue.enqueue =>
        @queue.browser.emit("timeout", @fn, @delay)
