             @resetTimer
         else
             @currentSongTime += 1
-            if @queue.getFirst().getDuration() is @currentSongTime
+            if @queue.getFirst().getDuration() == @currentSongTime
                 @queue.removeFirst()
                 @currentSongTime = 0
     activate: ->

    constructor: (@info) ->
        if not @info?
            throw new Error "roomInfo is undefined"
        @queue = new SongQueue
        @timer = undefined
        @currentSongTime = 0
    getInfo: -> @info

            @timer = setInterval ->
              @tick()
            , 1000
            undefined
        else undefined
    isActive: ->
        @timer?
