Skip to content

Commit 73fbc26

Browse files
fix: fix closing socket on Windows
1 parent ae44ad0 commit 73fbc26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

IOSDeviceLib/GDBHelper.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,9 @@ void detach_connection(SOCKET socket, std::string& application_identifier, Devic
133133
std::string answer = receive_message_raw(socket);
134134
device_data->apps_cache[application_identifier].has_initialized_gdb = false;
135135
device_data->services.erase(kDebugServer);
136+
#ifdef _WIN32
137+
closesocket(socket);
138+
#else
136139
close(socket);
140+
#endif
137141
}

0 commit comments

Comments
 (0)