Implement MatrixAPI.abort_pending
This commit is contained in:
parent
04b02d4d5a
commit
cab2225077
@ -2752,6 +2752,15 @@ i_get_turn_server(MatrixAPI *api,
|
|||||||
FALSE, error);
|
FALSE, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
i_abort_pending(MatrixAPI *api)
|
||||||
|
{
|
||||||
|
MatrixHTTPAPIPrivate *priv = matrix_http_api_get_instance_private(
|
||||||
|
MATRIX_HTTP_API(api));
|
||||||
|
|
||||||
|
soup_session_abort(priv->soup_session);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
|
matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
|
||||||
{
|
{
|
||||||
@ -2847,5 +2856,5 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
|
|||||||
iface->get_turn_server = i_get_turn_server;
|
iface->get_turn_server = i_get_turn_server;
|
||||||
|
|
||||||
/* Non-spec methods */
|
/* Non-spec methods */
|
||||||
iface->abort_pending = NULL;
|
iface->abort_pending = i_abort_pending;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user