Преглед на файлове

Broadcast OFFLINE presence on disconnect

disconnect() sent PresenceStatus.ONLINE, so the bot stayed online in the
member list after shutdown, contradicting its own log message.
Paul Klumpp преди 1 седмица
родител
ревизия
c34cffb90a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      adapter.py

+ 2 - 2
adapter.py

@@ -298,10 +298,10 @@ class ChattoAdapter(BasePlatformAdapter):
 
         BasePlatformAdapter override
         """
-        # Broadcast away presence before tearing down
+        # Broadcast offline presence before tearing down
         try:
             client = await self._require_client()
-            await client.update_presence(status=PresenceStatus.ONLINE)
+            await client.update_presence(status=PresenceStatus.OFFLINE)
         except Exception:
             logger.debug("Chatto: update_presence(PresenceStatus.OFFLINE) failed on disconnect", exc_info=True)