well. to be honest.
I used to create my own serial queue for LightStreamerConnection stuff.
so it was blocked.
now I use the global concurrent queue:
Code:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
@try
{
[_client openConnectionWithInfo:connectionInfo delegate:self];
}
@catch (LSPushServerException *exPushServer)
{
}
@catch (LSPushConnectionException *exPushConn)
{
}
});
so that global queue is blocked while connecting with wrong credentials.
Then I reconnect and I don't know what is happening to it.
Anyway I don't see any previous blocks.
and secondly, I'm not receiving didReceiveServerFailure:
I receive didReceiveConnectionFailure
with message
Code:
Connection failure: Connection timed out
with no errorCode because it is LSPushConnectionException
so if I would use my serial queue when shall I call closeConnection?
Bookmarks