Implement MatrixAPI.abort_pending

This commit is contained in:
Gergely Polonkai 2016-01-22 16:00:42 +01:00
parent 04b02d4d5a
commit cab2225077

View File

@ -2752,6 +2752,15 @@ i_get_turn_server(MatrixAPI *api,
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
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;
/* Non-spec methods */
iface->abort_pending = NULL;
iface->abort_pending = i_abort_pending;
}