Update JsonAPI.mq5
This commit is contained in:
+2
-2
@@ -105,13 +105,13 @@ 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user