ssb: Fix trying to connect to the same stored connection over and over.
This commit is contained in:
@ -1015,6 +1015,7 @@ static JSValue _tf_ssb_connections(JSContext* context, JSValueConst this_val, in
|
||||
int flags = tf_ssb_connection_get_flags(connection);
|
||||
JS_SetPropertyStr(context, flags_object, "one_shot", JS_NewBool(context, (flags & k_tf_ssb_connect_flag_one_shot) != 0));
|
||||
JS_SetPropertyStr(context, object, "flags", flags_object);
|
||||
JS_SetPropertyStr(context, object, "connected", JS_NewBool(context, tf_ssb_connection_is_connected(connection)));
|
||||
const char* destroy_reason = tf_ssb_connection_get_destroy_reason(connection);
|
||||
if (destroy_reason)
|
||||
{
|
||||
|
Reference in New Issue
Block a user