       @clearDelay('websocket-no-connection-try-reconnect')
       if @error
         @error.modalHide()
-        @error = undefined
+        @error = false
+        @tryToConnect = false
 
       @auth()
 

    check = =>
      @log 'Websocket', 'notice', 'no websockend ping response, reconnect...'
      @close()
    @delay check, 120000, 'websocket-ping-check', 'ws'

  pong: ->
    return if @backend is 'ajax'

            return

          # show reconnect message
          @error = new App.ControllerModal(
            title:   'Lost network connection!'
            message: 'Lost network connection to system, trying to reconnect...'
            backdrop: false
            keyboard: false
            show:     true
          )
        if !@tryToConnect
          @delay message, 7000, 'websocket-no-connection-try-reconnect-message', 'ws'
