/** Removes a path from the PEM and Closes it if it is still operational. */ public void RemovePath(string path) { PathEdgeListener pel = null; lock ( _sync ) { if (!_pel_map.TryGetValue(path, out pel)) { return; } _pel_map.Remove(path); } if (pel != null) { pel.Stop(); } }