Skip to content

Commit 85de8ea

Browse files
committed
fixed:does not delete user when first close
1 parent 1e341e2 commit 85de8ea

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

XEngine_Apps/MQCore_TCPApp/MQCore_TCPApp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ int main(int argc, char** argv)
588588
MQ_DeleteTopic();
589589
MQ_DeleteUser();
590590

591+
std::this_thread::sleep_for(std::chrono::seconds(1));
591592
XClient_TCPSelect_Close(m_Socket);
592593
#ifdef _MSC_BUILD
593594
WSACleanup();

XEngine_Apps/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
windows:use x86 debug mode complie by vs2022
2-
linux or macos:g++ command
1+
## XEngine_Apps
2+
3+
windows:use x86 debug mode complie by vs2022
4+
linux or macos:g++ command
5+
6+
#### MQCore_HTTPApp
7+
http example
8+
9+
#### MQCore_TCPApp
10+
tcp example
11+
12+
#### MQCore_WSApp
13+
websocket example

0 commit comments

Comments
 (0)