Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit f79ccc6

Browse files
authored
Merge pull request #76 from cyanray/dev/cyanray
修复: 潜在的 Segmentation fault.
2 parents 44f362d + 9e563da commit f79ccc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mirai/third-party/WebSocketClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ namespace cyanray
337337

338338
void WebSocketClient::RecvLoop()
339339
{
340-
socket_t& sock = PrivateMembers->wsSocket;
340+
socket_t sock = PrivateMembers->wsSocket;
341341
vector<byte_t> buffer;
342342
buffer.reserve(8192);
343343

0 commit comments

Comments
 (0)