From cab22250772be36162f5eabf2f21b4e70c0028f0 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 22 Jan 2016 16:00:42 +0100 Subject: [PATCH] Implement MatrixAPI.abort_pending --- src/matrix-http-api.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/matrix-http-api.c b/src/matrix-http-api.c index 2580b51..9727836 100644 --- a/src/matrix-http-api.c +++ b/src/matrix-http-api.c @@ -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; }