06-19-2020, 03:36 PM
I found a work arround today, but unsure if this is a good practice:
The IdTCPClient.Connect was done inside a TThread to prevent delays in the main task.
For android only I run the Connect instruction in Synchronized(FClient.Connect).
Since that, the Socket Error 107 is disapperared, only the EIdSocketError is called.
Are there options to update the Indy code that the connect is operable even when called from a thread ?
The IdTCPClient.Connect was done inside a TThread to prevent delays in the main task.
For android only I run the Connect instruction in Synchronized(FClient.Connect).
Since that, the Socket Error 107 is disapperared, only the EIdSocketError is called.
Are there options to update the Indy code that the connect is operable even when called from a thread ?