2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-02 07:15:23 +00:00

Make Client.signal_handler reentrant (#57)

This commit is contained in:
Eric Blundell
2018-04-21 13:50:30 -05:00
committed by Dan
parent 6e8077df2b
commit 40b768e97c

View File

@@ -810,7 +810,6 @@ class Client:
log.debug("{} stopped".format(name))
def signal_handler(self, *args):
self.stop()
self.is_idle = False
def idle(self, stop_signals: tuple = (SIGINT, SIGTERM, SIGABRT)):
@@ -830,6 +829,8 @@ class Client:
while self.is_idle:
time.sleep(1)
self.stop()
def send(self, data: Object):
"""Use this method to send Raw Function queries.