Close packetlog file on exit...

This commit is contained in:
Dabb 2001-01-16 18:03:50 +00:00
parent c6a06f6dc6
commit 92b7f5f8f0
2 changed files with 9 additions and 0 deletions

View file

@ -62,6 +62,11 @@ Sys_Quit (void)
{ {
Host_Shutdown (); Host_Shutdown ();
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK); fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
#ifdef PACKET_LOGGING
Net_LogStop();
#endif
exit (0); exit (0);
} }

View file

@ -258,6 +258,10 @@ Sys_Quit (void)
if (qwclsemaphore) if (qwclsemaphore)
CloseHandle (qwclsemaphore); CloseHandle (qwclsemaphore);
#ifdef PACKET_LOGGING
Net_LogStop();
#endif
exit (0); exit (0);
} }