mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:37:48 +02:00
Cleanup connection on node kills
This commit is contained in:
parent
373d4b8944
commit
c96632d4b6
2 changed files with 7 additions and 1 deletions
|
@ -428,6 +428,10 @@ void LimitedNodeList::handleNodeKill(const SharedNodePointer& node) {
|
||||||
qCDebug(networking) << "Killed" << *node;
|
qCDebug(networking) << "Killed" << *node;
|
||||||
node->stopPingTimer();
|
node->stopPingTimer();
|
||||||
emit nodeKilled(node);
|
emit nodeKilled(node);
|
||||||
|
|
||||||
|
if (auto activeSocket = node->getActiveSocket()) {
|
||||||
|
_nodeSocket.cleanupConnection(*activeSocket);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedNodePointer LimitedNodeList::addOrUpdateNode(const QUuid& uuid, NodeType_t nodeType,
|
SharedNodePointer LimitedNodeList::addOrUpdateNode(const QUuid& uuid, NodeType_t nodeType,
|
||||||
|
|
|
@ -73,10 +73,12 @@ public:
|
||||||
ConnectionStats::Stats sampleStatsForConnection(const HifiSockAddr& destination);
|
ConnectionStats::Stats sampleStatsForConnection(const HifiSockAddr& destination);
|
||||||
std::vector<HifiSockAddr> getConnectionSockAddrs();
|
std::vector<HifiSockAddr> getConnectionSockAddrs();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void cleanupConnection(HifiSockAddr sockAddr);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void readPendingDatagrams();
|
void readPendingDatagrams();
|
||||||
void rateControlSync();
|
void rateControlSync();
|
||||||
void cleanupConnection(HifiSockAddr sockAddr);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setSystemBufferSizes();
|
void setSystemBufferSizes();
|
||||||
|
|
Loading…
Reference in a new issue