Skip to content

Commit

Permalink
fix: fix exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikOverflow authored Mar 11, 2024
1 parent 966630a commit 90cc54f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pypresence/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def connect(self):
def close(self):
self.send_data(2, {'v': 1, 'client_id': self.client_id})
self.loop.close()
self.sock_writer.close()
if sys.platform == 'win32' or sys.platform == 'win64':
self.sock_writer._call_connection_lost(None)

Expand Down Expand Up @@ -85,6 +84,5 @@ async def connect(self):
def close(self):
self.send_data(2, {'v': 1, 'client_id': self.client_id})
self.loop.close()
self.sock_writer.close()
if sys.platform == 'win32' or sys.platform == 'win64':
self.sock_writer._call_connection_lost(None)

0 comments on commit 90cc54f

Please sign in to comment.