Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
b940e17f
Unverified
Commit
b940e17f
authored
Apr 02, 2021
by
ebbit1q
Committed by
GitHub
Apr 01, 2021
Browse files
catch nullptr on websocket connections (#4300)
* catch nullptr on websocket connections * clangify
parent
8e954b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/serversocketinterface.cpp
View file @
b940e17f
...
...
@@ -1692,6 +1692,9 @@ WebsocketServerSocketInterface::~WebsocketServerSocketInterface()
void
WebsocketServerSocketInterface
::
initConnection
(
void
*
_socket
)
{
if
(
_socket
==
nullptr
)
{
return
;
}
socket
=
(
QWebSocket
*
)
_socket
;
socket
->
setParent
(
this
);
address
=
socket
->
peerAddress
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment