summaryrefslogtreecommitdiff
path: root/gobex/gobex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r--gobex/gobex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 3848884cd..16a4aae9c 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -250,6 +250,7 @@ static gboolean req_timeout(gpointer user_data)
g_assert(p != NULL);
+ p->timeout_id = 0;
obex->pending_req = NULL;
err = g_error_new(G_OBEX_ERROR, G_OBEX_ERROR_TIMEOUT,
@@ -263,8 +264,6 @@ static gboolean req_timeout(gpointer user_data)
g_error_free(err);
pending_pkt_free(p);
- p->timeout_id = 0;
-
return FALSE;
}