                     @_conn?.open()
         @_idle.start()
 
+    reset_idle: =>
+        console.log("idle: reset_idle got called")
+        @_idle?.stop()
+        @_idle?.start()
 
     set_standby_timeout_m: (time_m) =>
         @_idle_timeout = time_m * 60 * 1000
-        @_idle.setAwayTimeout(@_idle_timeout)
-        @_idle.start()
+        @_idle?.setAwayTimeout(@_idle_timeout)
+        @_idle?.start()
 
     _connect: (url, ondata) ->
         @url = url

        window.smc = {}
        window.smc.client = @
        window.smc.misc = require('smc-util/misc')
        @_init_idle()
        super(opts)

    _init_idle: () =>

#
###############################################################################

client = require('smc-util/client')

{Idle} = require('./external/idle')
