txlyre 2 سال پیش
والد
کامیت
e5c624a88c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      byafn.py

+ 2 - 2
byafn.py

@@ -267,9 +267,9 @@ async def send(peer, message):
         )
 
 async def receive(peer):
-  await cooldown(peer, False)
-
   async with peer.receive_lock:
+    await cooldown(peer, False)
+
     kind = (await read(peer, 1))[0]
 
     if kind != 0xff: