We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 821b593 commit 9f1d8bfCopy full SHA for 9f1d8bf
1 file changed
src/openspace/src/socketwrapper.py
@@ -45,7 +45,9 @@ async def _handle_receive(self):
45
print("Error receiving data from OpenSpace. Connection closed.")
46
break
47
except ConnectionAbortedError as e:
48
- print(f"Connection exited with: {e}")
+ if not self._disconnecting:
49
+ # We don't need to print the message if we are already deliberately disconnecting
50
+ print(f"Connection exited with: {e}")
51
52
except OSError as e:
53
print(f"Connection exited with: {e}")
@@ -80,4 +82,4 @@ def disconnect(self):
80
82
81
83
self._disconnecting = True
84
self._onDisconnect()
- self._client.close()
85
+ self._client.close()
0 commit comments