def disconnect ( self ) : if self . _connected : self . _connected = False self . _conn . disconnect ( )
python stmp connection unexpectedly closed
Gracefully close connection to stomp server .
def disconnect(self):
        """Gracefully close connection to stomp server."""
        if self._connected:
            self._connected = False
            self._conn.disconnect()