diff --git a/apps/ssb.json b/apps/ssb.json index 0b8a1b6d..d163e2f7 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&XFhkB74Ll0f2MA24HyKNK42Dckkb+3AGmuDxJDOets8=.sha256" + "previous": "&GHOyZaFBo5iHa8XumUpbdtDi2F0YhZaiF8cVsutdxTU=.sha256" } diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index abdf376a..4fad1ff9 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -107,13 +107,13 @@ class TfTabConnectionsElement extends LitElement { ${connection.tunnel !== undefined ? '🚇' : html`(${connection.host}:${connection.port})`} +
${connection.requests.map(x => html` + ${x.request_number > 0 ? '🟩' : '🟥'} ${x.name} + `)}
`; diff --git a/src/ssb.c b/src/ssb.c index bf2730bb..a43527db 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -1583,11 +1583,11 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t } JS_FreeValue(context, name); - tf_ssb_connection_add_request(connection, -request_number, namebuf, NULL, NULL, NULL, NULL); for (tf_ssb_rpc_callback_node_t* it = connection->ssb->rpc; it; it = it->next) { if (_tf_ssb_name_equals(context, val, it->name)) { + tf_ssb_connection_add_request(connection, -request_number, namebuf, NULL, NULL, NULL, NULL); tf_trace_begin(connection->ssb->trace, it->flattened_name); PRE_CALLBACK(connection->ssb, it->callback); it->callback(connection, flags, request_number, val, message, size, it->user_data);