B
    f’»dà  ã               @   s   d dl Z G dd„ dƒZdS )é    Nc               @   s   e Zd Zddœdd„ZdS )Ú
Disconnectzpyrogram.Client)Úselfc             Ã   sF   | j stdƒ‚| jrtdƒ‚| j ¡ I dH  | j ¡ I dH  d| _ dS )zýDisconnect the client from Telegram servers.

        Raises:
            ConnectionError: In case you try to disconnect an already disconnected client or in case you try to
                disconnect a client that needs to be terminated first.
        zClient is already disconnectedz&Can't disconnect an initialized clientNF)Zis_connectedÚConnectionErrorZis_initializedÚsessionÚstopZstorageÚclose)r   © r   úD/tmp/pip-unpacked-wheel-rcokkf2l/pyrogram/methods/auth/disconnect.pyÚ
disconnect   s    	zDisconnect.disconnectN)Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   r	   r      s   r   )Zpyrogramr   r   r   r   r	   Ú<module>   s   