     @cookies = []
     @flows = []
     @users = []
-    @login(() =>
-      @flows.forEach((flow) =>
-        @subscribe(flow.subdomain, flow.name)
-      )
-    )
+    @login()
 
   start: () ->
     @socket = new FlowdockSocket(@cookies, @clientId)
     @socket.on "message", (message) =>
       @emit("message", message)
 
-  login: (callback) ->
+  login: () ->
     post_data = querystring.stringify(
       "user_session[email]": @email
       "user_session[password]": @password

      )
      res.on "end", () =>
        @emit "login"
        callback()

    req.write(post_data)
    req.end()

    request.end()

  subscribe: (subdomain, flow) ->
    if @cookies.length == 0
      @on "login", =>
        @subscribe subdomain, flow
      return

    if @flows.filter((f) -> f.subdomain == subdomain && f.name == flow).length == 0
      @flows.push(
        subdomain: subdomain
        name: flow
      )

    options =
      host: subdomain + host
