diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index 40e8a9f6..391ec0bb 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -218,6 +218,8 @@ static __attribute__ ((noreturn)) void Sys_Exit( int exitCode ) remove( pidFile ); } + NET_Shutdown( ); + Sys_PlatformExit( ); exit( exitCode );