From 10838cfafb934379cc90a2a64642ea9095bb4417 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 5 Oct 2022 20:01:43 +0200 Subject: [PATCH] Make sure the server is destroyed when launching a title --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b3c0112..0af8ec5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); }