mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11: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 {
|
||||
this->serverSocket = create_server(PORT);
|
||||
if (this->serverSocket < 0) {
|
||||
DEBUG_FUNCTION_LINE_WARN("Creating a new ftp server failed. Trying again in 5 seconds.");
|
||||
OSSleepTicks(OSSecondsToTicks(5));
|
||||
if (errno != EBUSY) {
|
||||
DEBUG_FUNCTION_LINE_WARN("Creating server failed: %d", errno);
|
||||
}
|
||||
OSSleepTicks(OSMillisecondsToTicks(10));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user