Merge pull request #304 from carlo-bramini/tcpip-win32-fix

Fix crash to TCP server (WIN32).
This commit is contained in:
Tom M 2017-12-14 16:54:51 +01:00 committed by GitHub
commit e4f338d014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -736,7 +736,7 @@ int main(int argc, char** argv)
cleanup:
#if !defined(MACINTOSH) && !defined(WIN32)
#if !defined(MACINTOSH)
if (server != NULL) {
/* if the user typed 'quit' in the shell, kill the server */
if (!interactive) {

View file

@ -1161,8 +1161,10 @@ void delete_fluid_server_socket(fluid_server_socket_t *server_socket)
if (server_socket->socket != INVALID_SOCKET)
fluid_socket_close (server_socket->socket);
if (server_socket->thread)
if (server_socket->thread) {
fluid_thread_join(server_socket->thread);
delete_fluid_thread (server_socket->thread);
}
FLUID_FREE (server_socket);