mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Fix domain server crash
This commit is contained in:
parent
fb79d57fef
commit
cf57b506b5
1 changed files with 2 additions and 1 deletions
|
@ -131,8 +131,9 @@ void WebRTCSignalingServer::webSocketDisconnected() {
|
|||
auto source = qobject_cast<QWebSocket*>(sender());
|
||||
if (source) {
|
||||
auto address = source->peerAddress().toString() + ":" + QString::number(source->peerPort());
|
||||
delete _webSockets.value(address);
|
||||
_webSockets.remove(address);
|
||||
source->abort();
|
||||
source->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue