Skip to content

Commit

Permalink
extract to erase
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <[email protected]>
  • Loading branch information
Nate Koenig committed Apr 9, 2021
1 parent 66e2e94 commit 48a8f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/websocket_server/WebsocketServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ void WebsocketServer::OnMessage(int _socketId, const std::string &_msg)
if (topicConnectionIter != this->topicConnections.end())
{
// Remove from the topic connections map
topicConnectionIter->second.extract(_socketId);
topicConnectionIter->second.erase(_socketId);

// Only unsubscribe from the Ignition Transport topic if there are no
// more websocket connections.
Expand Down

0 comments on commit 48a8f48

Please sign in to comment.