forked from cory/tildefriends
ssb: Fix a request leak in tunnel.connect.
This commit is contained in:
parent
7c36a543da
commit
b95eed46bb
@ -2730,6 +2730,7 @@ static void _tf_ssb_connection_tunnel_callback(
|
|||||||
tf_ssb_connection_t* tunnel = user_data;
|
tf_ssb_connection_t* tunnel = user_data;
|
||||||
if (flags & k_ssb_rpc_flag_end_error)
|
if (flags & k_ssb_rpc_flag_end_error)
|
||||||
{
|
{
|
||||||
|
tf_ssb_connection_remove_request(connection, -request_number);
|
||||||
tf_ssb_connection_rpc_send(connection, flags, -request_number, NULL, (const uint8_t*)"false", strlen("false"), NULL, NULL, NULL);
|
tf_ssb_connection_rpc_send(connection, flags, -request_number, NULL, (const uint8_t*)"false", strlen("false"), NULL, NULL, NULL);
|
||||||
tf_ssb_connection_close(tunnel);
|
tf_ssb_connection_close(tunnel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user