Client wrapper: disconnection callback called during call to connect
The disconnection callback (SOPC_ClientHelper_DisconnectCbk
or SOPC_LibSub_DisconnectCbk
) is called during the call to Connect (SOPC_ClientCommon_Connect
or SOPC_ClientHelper_Connect
) whereas it should not.
Since the Connect return status should be sufficient to know if connection succeeded and disconnect callback parameters cannot be verified without the Connect output parameters.
As consequence, we shall inhibit the call to disconnect callback until connect succeeded.