improve wait time before reconnecting

This commit is contained in:
dries.k
2022-03-24 13:36:46 +01:00
parent fd0832a2f9
commit 166b0c2b00
2 changed files with 2 additions and 1 deletions

View File

@@ -183,13 +183,13 @@ class GotifyClient(GotifySession):
self.listener.start()
def opened_callback(self, user_callback: Callable[[], None] = None):
self.reset_wait_time()
if user_callback:
user_callback()
def reconnect(self):
if not self.is_listening():
self.listener.start()
self.reset_wait_time()
def stop(self, reset_wait: bool = False):
if reset_wait: