mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[ntcore] Fix unpublishing on client disconnect (#7042)
This commit is contained in:
@@ -1265,6 +1265,7 @@ void ServerImpl::RemoveClient(int clientId) {
|
||||
if (tcdIt != topic->clients.end()) {
|
||||
pubChanged = !tcdIt->second.publishers.empty();
|
||||
subChanged = !tcdIt->second.subscribers.empty();
|
||||
topic->publisherCount -= tcdIt->second.publishers.size();
|
||||
topic->clients.erase(tcdIt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user