"searchaddpl": self._fetch_nothing,
"update": self._fetch_item,
"rescan": self._fetch_item,
+ "readcomments": self._fetch_object,
# Sticker Commands
"sticker get": self._fetch_item,
"sticker set": self._fetch_nothing,
# Audio Output Commands
"disableoutput": self._fetch_nothing,
"enableoutput": self._fetch_nothing,
+ "toggleoutput": self._fetch_nothing,
"outputs": self._fetch_outputs,
# Reflection Commands
"commands": self._fetch_list,
self._rfile.close()
if hasattr(self._wfile, 'close'):
self._wfile.close()
- if isinstance(self._sock, socket.socket):
+ if hasattr(self._sock, 'close'):
self._sock.close()
self._reset()