             process.nextTick( ->
               process.exit(0);
             )
-            
+
         process.on("SIGINT", stopServer);
         process.on("exit", stopServer);
-        
+
         if opt.livereload
           tiny_lr.Server::error = ->
           if opt.https?

    @server()

  server: ->
    app = connect()
    @middleware().forEach (middleware) ->
      app.use middleware
    if opt.https?

        @log "Error on starting server: #{err}"
      else
        @log "Server started http://#{opt.host}:#{opt.port}"

        stoped = false;
        sockets = [];

        server.on 'close', =>
          if (!stoped)
            stoped = true
