ssb: Wait, I don't think we need to close any connections here.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
This commit is contained in:
@ -303,7 +303,6 @@ typedef struct tunnel_t
|
|||||||
{
|
{
|
||||||
tf_ssb_connection_t* connection;
|
tf_ssb_connection_t* connection;
|
||||||
int32_t request_number;
|
int32_t request_number;
|
||||||
bool close_on_error;
|
|
||||||
} tunnel_t;
|
} tunnel_t;
|
||||||
|
|
||||||
static void _tf_ssb_rpc_tunnel_callback(tf_ssb_connection_t* connection, uint8_t flags, int32_t request_number, JSValue args, const uint8_t* message, size_t size, void* user_data)
|
static void _tf_ssb_rpc_tunnel_callback(tf_ssb_connection_t* connection, uint8_t flags, int32_t request_number, JSValue args, const uint8_t* message, size_t size, void* user_data)
|
||||||
@ -333,11 +332,6 @@ static void _tf_ssb_rpc_tunnel_callback(tf_ssb_connection_t* connection, uint8_t
|
|||||||
|
|
||||||
JS_FreeValue(context, stack_val);
|
JS_FreeValue(context, stack_val);
|
||||||
JS_FreeValue(context, message_val);
|
JS_FreeValue(context, message_val);
|
||||||
|
|
||||||
if (tun->close_on_error)
|
|
||||||
{
|
|
||||||
tf_ssb_connection_close(tun->connection, buffer);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -400,7 +394,6 @@ static void _tf_ssb_rpc_tunnel_connect(tf_ssb_connection_t* connection, uint8_t
|
|||||||
*data0 = (tunnel_t) {
|
*data0 = (tunnel_t) {
|
||||||
.connection = target_connection,
|
.connection = target_connection,
|
||||||
.request_number = tunnel_request_number,
|
.request_number = tunnel_request_number,
|
||||||
.close_on_error = true,
|
|
||||||
};
|
};
|
||||||
tunnel_t* data1 = tf_malloc(sizeof(tunnel_t));
|
tunnel_t* data1 = tf_malloc(sizeof(tunnel_t));
|
||||||
*data1 = (tunnel_t) {
|
*data1 = (tunnel_t) {
|
||||||
|
Reference in New Issue
Block a user