As activeTunnels is a live map which may change while getActiveConnections() is running, it is possible for an initial call to activeTunnels.isEmpty() to pass yet for the set of connection identifiers produced to be empty.
As activeTunnels is a live map which may change while getActiveConnections() is running, it is possible for an initial call to activeTunnels.isEmpty() to pass yet for the set of connection identifiers produced to be empty.