break loop on empty response

This commit is contained in:
Simon Laux
2022-06-13 19:02:13 +02:00
parent d2d35fe26b
commit 0c64701984

View File

@@ -3261,8 +3261,8 @@ static void accounts_jsonrpc_thread_func(void* arg)
}
response = dc_get_next_json_response(dcn_accounts->jsonrpc_instance);
if (response == NULL) {
//TRACE("received NULL event, skipping");
continue;
// done or broken
break;
}
if (!dcn_accounts->threadsafe_jsonrpc_handler) {