   # TODO: handle errors
   return if error
   AppActionCreators.processLobby(res.body.identities)
-  if lobbyPoll
-    setTimeout ServerAPIBridge.getLobby, LOBBY_TIMEOUT
 
 ServerAPIBridge =
 

    request.open('GET', "/unidentify/#{identity}", false) #false for synchronous
    request.send(null)

  beginLobbyPoll: ->
    lobbyPoll = true
    ServerAPIBridge.getLobby()

  cancelLobbyPoll: ->
    lobbyPoll = false

  getLobby: ->
    console.log("GETTING LOBBY")
    request.get("/lobby").end(processLobby)

request = require('superagent')

processIdentity = (error, res)->
  # TODO: handle errors
