mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Merge pull request #304 from carlo-bramini/tcpip-win32-fix
Fix crash to TCP server (WIN32).
This commit is contained in:
commit
e4f338d014
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue