mirror of
https://github.com/wiiu-env/wiiload_plugin.git
synced 2024-11-22 02:29:15 +01:00
Stop the wiiload server in ON_APPLICATION_ENDS instead of ON_APPLICATION_REQUESTS_EXIT hook
This commit is contained in:
parent
7f963d1900
commit
4ed731a3ef
@ -22,6 +22,7 @@ INITIALIZE_PLUGIN() {
|
||||
} else {
|
||||
gLibRPXLoaderInitDone = true;
|
||||
}
|
||||
thread = nullptr;
|
||||
}
|
||||
|
||||
/* Entry point */
|
||||
@ -38,7 +39,7 @@ ON_APPLICATION_START() {
|
||||
thread = new TcpReceiver(4299);
|
||||
}
|
||||
|
||||
ON_APPLICATION_REQUESTS_EXIT() {
|
||||
ON_APPLICATION_ENDS() {
|
||||
DEBUG_FUNCTION_LINE("Stop wiiload thread");
|
||||
if (thread != nullptr) {
|
||||
delete thread;
|
||||
|
Loading…
Reference in New Issue
Block a user