mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-17 18:29:19 +01:00
Make sure the server is destroyed when launching a title
This commit is contained in:
parent
45ea7ac07e
commit
10838cfafb
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user