ssb: Hook up some more disconnect messaging.

This commit is contained in:
2024-12-26 20:12:04 -05:00
parent 8f51eb63b0
commit 7843168fad
5 changed files with 67 additions and 65 deletions

View File

@ -1198,7 +1198,7 @@ static JSValue _tf_ssb_closeConnection(JSContext* context, JSValueConst this_val
tf_ssb_connection_t* connection = tf_ssb_connection_get(ssb, id);
if (connection)
{
tf_ssb_connection_close(connection);
tf_ssb_connection_close(connection, "Close requested by user.");
}
JS_FreeCString(context, id);
return connection ? JS_TRUE : JS_FALSE;