mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Don't do anything on .connect() if it's already connected
This commit is contained in:
@@ -35,6 +35,9 @@ class MtProtoSender:
|
||||
"""Connects to the server"""
|
||||
self._transport.connect()
|
||||
|
||||
def is_connected(self):
|
||||
return self._transport.is_connected()
|
||||
|
||||
def disconnect(self):
|
||||
"""Disconnects from the server"""
|
||||
self._transport.close()
|
||||
|
Reference in New Issue
Block a user