mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix ConnectionResetError when only ping task
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
92e4ca845b
commit
3f34c96175
1 changed files with 4 additions and 1 deletions
|
|
@ -287,7 +287,10 @@ class Session:
|
|||
ping_id=0, disconnect_delay=self.WAIT_TIMEOUT + 10
|
||||
), False
|
||||
)
|
||||
except (OSError, RPCError):
|
||||
except OSError:
|
||||
self.loop.create_task(self.restart())
|
||||
break
|
||||
except RPCError:
|
||||
pass
|
||||
|
||||
log.info("PingTask stopped")
|
||||
|
|
|
|||
Loading…
Reference in a new issue