diff --git a/source/cl_sys_unix.c b/source/cl_sys_unix.c index 948cb5b..6fec665 100644 --- a/source/cl_sys_unix.c +++ b/source/cl_sys_unix.c @@ -62,6 +62,11 @@ Sys_Quit (void) { Host_Shutdown (); fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK); + +#ifdef PACKET_LOGGING + Net_LogStop(); +#endif + exit (0); } diff --git a/source/cl_sys_win.c b/source/cl_sys_win.c index 1583e61..b84f8cd 100644 --- a/source/cl_sys_win.c +++ b/source/cl_sys_win.c @@ -258,6 +258,10 @@ Sys_Quit (void) if (qwclsemaphore) CloseHandle (qwclsemaphore); +#ifdef PACKET_LOGGING + Net_LogStop(); +#endif + exit (0); }