Skip to content

Commit 7267650

Browse files
committed
Updated to 1.4.16
Update to 1.4.16 from the latest commit on the official repo https://github.com/pyrogram/pyrogram/
1 parent 35c1419 commit 7267650

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
__version__ = "1.4.15"
19+
__version__ = "1.4.16"
2020
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
2121
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2222

pyrogram/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def async_to_sync_wrap(*args, **kwargs):
5858
loop = asyncio.new_event_loop()
5959
asyncio.set_event_loop(loop)
6060

61-
if threading.current_thread() is threading.main_thread():
61+
if threading.current_thread() is threading.main_thread() or not main_loop.is_running():
6262
if loop.is_running():
6363
return coroutine
6464
else:

0 commit comments

Comments
 (0)