Update gateway.py
added ability to remove large chunks of session data without affecting much functionality
@@ -126,6 +126,7 @@ class GatewayServer:
self.memberFetchingStatus = {"first": []}
self.resetMembersOnSessionReconnect = True #reset members after each session
+ self.updateSessionData = True
#latency
self._last_ack = None
@@ -225,6 +226,7 @@ class GatewayServer:
self.settings_ready_supp = resp.parsed.ready_supplemental() #parsed
self.session = Session(self.settings_ready, self.settings_ready_supp) #reinitialize i guess
self.READY = True
+ if self.updateSessionData:
self.sessionUpdates(resp)
thread.start_new_thread(self._response_loop, (resp,))
