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);
initLogging();
//Make sure the server instance is destroyed.
BackgroundThread::destroyInstance();
if (gFTPServerEnabled) {
startServer();
}
@ -225,6 +226,5 @@ WUPS_CONFIG_CLOSED() {
ON_APPLICATION_REQUESTS_EXIT() {
stopServer();
deinitLogging();
}