Skip to content

Commit

Permalink
only remove current connection if it has ever been switched to #12996
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 7, 2023
1 parent b194d4f commit da78134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/traci/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,6 @@ def close(self, wait=True):
self._process.wait()
self.simulation._setConnection(None)
if self._label is not None:
if _connections[""] == self:
if _connections.get("") == self:
del _connections[""]
del _connections[self._label]

0 comments on commit da78134

Please sign in to comment.