We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9a288 commit 744fb96Copy full SHA for 744fb96
src/bridge.h
@@ -43,12 +43,11 @@ class RpcResult {
43
if (k_mutex_lock(read_mutex, K_MSEC(10)) == 0 ) {
44
if (client->get_response(msg_id_wait, result, error)) {
45
k_mutex_unlock(read_mutex);
46
- break;
47
- } else if (error.code != NO_ERR) {
48
- k_mutex_unlock(read_mutex);
49
- k_mutex_lock(write_mutex, K_FOREVER);
50
- client->notify(BRIDGE_ERROR, error.traceback);
51
- k_mutex_unlock(write_mutex);
+ if (error.code == PARSING_ERR) {
+ k_mutex_lock(write_mutex, K_FOREVER);
+ client->notify(BRIDGE_ERROR, error.traceback);
+ k_mutex_unlock(write_mutex);
+ }
52
break;
53
}
54
0 commit comments