Fix crash when removing a connected transport interface
This commit is contained in:
parent
6cdcd47f9b
commit
07cf9e05ae
@ -452,6 +452,10 @@ void JsonRPCServerImplementation::unregisterTransportInterface(TransportInterfac
|
||||
disconnect(interface, &TransportInterface::clientConnected, this, &JsonRPCServerImplementation::clientConnected);
|
||||
disconnect(interface, &TransportInterface::clientDisconnected, this, &JsonRPCServerImplementation::clientDisconnected);
|
||||
disconnect(interface, &TransportInterface::dataAvailable, this, &JsonRPCServerImplementation::processData);
|
||||
foreach (const QUuid &clientId, m_clientTransports.keys(interface)) {
|
||||
interface->terminateClientConnection(clientId);
|
||||
clientDisconnected(clientId);
|
||||
}
|
||||
m_interfaces.take(interface);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user