mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14: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
|
ping_id=0, disconnect_delay=self.WAIT_TIMEOUT + 10
|
||||||
), False
|
), False
|
||||||
)
|
)
|
||||||
except (OSError, RPCError):
|
except OSError:
|
||||||
|
self.loop.create_task(self.restart())
|
||||||
|
break
|
||||||
|
except RPCError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
log.info("PingTask stopped")
|
log.info("PingTask stopped")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue