         if atom.config.get "remote-atom.launch_at_startup"
             @startserver()
         atom.workspaceView.command "remote-atom:start-server", => @startserver()
-        atom.workspaceView.command "remote-atom:stop-server", => @stopserver()
+        atom.workspaceView.command "remote-atom:stop--server", => @stopserver()
 
     deactivate: ->
         @stopserver()

        # stop any existing server
        if @online
            @stopserver()
            message.display "Restarting server", 2000
        else
            message.display "Starting server", 2000

        @server = net.createServer (socket) ->
            console.log "[ratom] received connection from #{socket.remoteAddress}"

        @server.listen port, 'localhost'

    stopserver: ->
        message.display "Stoping remote atom server", 2000
        if @online
            @server.close()
            @online = false
