Skip to content
Snippets Groups Projects
Commit bde82d5b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use FILE_RETRY_DELAY macro for consistent retry behavior

parent 39ccc614
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
......@@ -24,6 +24,7 @@
#include "filewrap.h"
#include "sockwrap.h"
#include "nopen.h"
#include "sbbsdefs.h"
#ifdef _WIN32
#include <io.h>
#endif
......@@ -52,7 +53,7 @@ int nopen(const char* str, uint access)
#endif
while(((file=sopen(str,access,share,DEFFILEMODE))==-1)
&& FILE_RETRY_ERRNO(errno) && count++<LOOP_NOPEN)
SLEEP((count / 10) * 100);
FILE_RETRY_DELAY(count);
return(file);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment