original_docstring: Force a disconnect.
  
      Use this to ensure the connection is terminated.
  
      
docstring: Force a disconnect.
  Use this to ensure the connection is terminated.
docstring_tokens: Force a disconnect . Use this to ensure the connection is terminated .
code: def _force_disconnect(*_, **__):
      """Force a disconnect.
  
      Use this to ensure the connection is terminated.
  
      """
      global _socket, _socket_lock
      try:
          with _socket_lock:
              if _socket:
                  # TODO: Could this sometimes fail?
                  try:
                      _socket.shutdown(socket.SHUT_RDWR)
                  except:
                      pass
                  _socket.close()
                  _socket = None
      except:
          pass
      finally:
          app.notify("Talon", "Voicemacs disconnected")
code_tokens: def _force_disconnect ( * _ , ** __ ) : global _socket , _socket_lock try : with _socket_lock : if _socket : try : _socket . shutdown ( socket . SHUT_RDWR ) except : pass _socket . close ( ) _socket = None except : pass finally : app . notify ( "Talon" , "Voicemacs disconnected" )
short_docstring: Force a disconnect.
short_docstring_tokens: Force a disconnect .
comment: """Force a disconnect.
  
      Use this to ensure the connection is terminated.
  
      """$SEP$# TODO: Could this sometimes fail?