Make sure the server is destroyed when launching a title

This commit is contained in:
Maschell 2022-10-05 20:01:43 +02:00
parent 45ea7ac07e
commit 10838cfafb

View File

@ -55,7 +55,8 @@ ON_APPLICATION_START() {
nn::ac::GetAssignedAddress(&hostIpAddress); nn::ac::GetAssignedAddress(&hostIpAddress);
initLogging(); initLogging();
//Make sure the server instance is destroyed.
BackgroundThread::destroyInstance();
if (gFTPServerEnabled) { if (gFTPServerEnabled) {
startServer(); startServer();
} }
@ -225,6 +226,5 @@ WUPS_CONFIG_CLOSED() {
ON_APPLICATION_REQUESTS_EXIT() { ON_APPLICATION_REQUESTS_EXIT() {
stopServer(); stopServer();
deinitLogging(); deinitLogging();
} }