mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 11:21:49 +01:00
Reduce sleep time on error
This commit is contained in:
parent
3f0d70cc4c
commit
c6e9c29cd7
@ -35,8 +35,10 @@ BOOL BackgroundThread::whileLoop() {
|
|||||||
} else {
|
} else {
|
||||||
this->serverSocket = create_server(PORT);
|
this->serverSocket = create_server(PORT);
|
||||||
if (this->serverSocket < 0) {
|
if (this->serverSocket < 0) {
|
||||||
DEBUG_FUNCTION_LINE_WARN("Creating a new ftp server failed. Trying again in 5 seconds.");
|
if (errno != EBUSY) {
|
||||||
OSSleepTicks(OSSecondsToTicks(5));
|
DEBUG_FUNCTION_LINE_WARN("Creating server failed: %d", errno);
|
||||||
|
}
|
||||||
|
OSSleepTicks(OSMillisecondsToTicks(10));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user