Update JsonAPI.mq5

This commit is contained in:
Nikolai
2020-02-12 20:34:41 +03:00
committed by GitHub
parent 9457e57890
commit aee89843da
+4 -4
View File
@@ -105,15 +105,15 @@ int OnInit(){
for(int i=0;i<bindAttemtps;i++){ for(int i=0;i<bindAttemtps;i++){
result = BindSockets(); result = BindSockets();
if (result) return(INIT_SUCCEEDED); if (BindSockets()) return(INIT_SUCCEEDED);
else { else {
Print("Binding sockets failed. Waiting ", bindSocketsDelay, " seconds to try again..."); Print("Binding sockets failed. Waiting ", bindSocketsDelay, " seconds to try again...");
Sleep(bindSocketsDelay*1000); Sleep(bindSocketsDelay*1000);
} }
} }
}
Print("Binding of sockets failed permanently."); Print("Binding of sockets failed permanently.");
return(INIT_FAILED); return(INIT_FAILED);
} }
/* /*