diff --git a/cocos/base/CCConsole.cpp b/cocos/base/CCConsole.cpp index 4ecba4d632..e6ba424249 100644 --- a/cocos/base/CCConsole.cpp +++ b/cocos/base/CCConsole.cpp @@ -800,7 +800,7 @@ void Console::loop() } #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) - closesocket(_listenfd) + closesocket(_listenfd); WSACleanup(); #else close(_listenfd);