Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 8c0041c

Browse files
author
年迈的老秋风Windy
committed
Websocket Disconnect Bug Fix
1 parent 1624069 commit 8c0041c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/XSYDWebSocket.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,12 @@ void EasyCrossPlatform::Network::Websocket::WebsocketSingleConnection::Disconnec
264264
{
265265
if (this->m_Shaked) {
266266
//Make a closing frame
267+
/*
267268
unsigned char mCloseHolder[500];
268269
int NewPongLength = this->mParser.makeFrame(WebSocketFrameType::CLOSING_FRAME, reinterpret_cast<unsigned char*>(""), 0, mCloseHolder, 500);
269270
std::string SendbackMsg = std::string(reinterpret_cast<char*>(mCloseHolder), NewPongLength);
270271
this->m_SocketHandle->SendMsg(SendbackMsg);
271-
272+
*/
272273
}
273274
this->m_SocketHandle->Disconnect();
274275
this->m_Shaked = false;

0 commit comments

Comments
 (0)