Bug Fix - App crashes on new start chat.

This commit is contained in:
giomfo
2017-02-14 17:45:44 +01:00
parent cf0bfea08f
commit c299a81eaf
@@ -133,6 +133,8 @@
userContact = nil;
forceSearchResultRefresh = NO;
searchProcessingQueue = nil;
searchProcessingLocalContacts = nil;
searchProcessingMatrixContacts = nil;
@@ -299,6 +301,12 @@
dispatch_sync(dispatch_get_main_queue(), ^{
// Sanity check: check whether self has been destroyed.
if (!searchProcessingQueue)
{
return;
}
// Render the search result only if there is no other search in progress.
searchProcessingCount --;