Skip to content

Commit

Permalink
Attempt to close the ws before re-opening
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Dec 22, 2021
1 parent 67720a5 commit 9952132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rustplus/api/remote/rustws.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ async def send_message(self, request : AppRequest, depth = 1) -> None:
except:
if not self.open or depth >= 10:
raise ClientNotConnectedError("Not Connected")
self.close()
self.connect()
await self.send_message(request=request, depth=depth + 1)

Expand Down

0 comments on commit 9952132

Please sign in to comment.