def is_connected(self): if self._connected: return is_connected(self._s) return False
def is_connected(self): if self._conn is not None: if self._conn.sock is not None: return util.is_connected(self._conn.sock) return False return False