Unverified Commit b940e17f authored by ebbit1q's avatar ebbit1q Committed by GitHub
Browse files

catch nullptr on websocket connections (#4300)

* catch nullptr on websocket connections

* clangify
parent 8e954b10
......@@ -1692,6 +1692,9 @@ WebsocketServerSocketInterface::~WebsocketServerSocketInterface()
void WebsocketServerSocketInterface::initConnection(void *_socket)
{
if (_socket == nullptr) {
return;
}
socket = (QWebSocket *)_socket;
socket->setParent(this);
address = socket->peerAddress();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment