diff options
author | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-11-29 14:54:54 +0000 |
---|---|---|
committer | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-11-29 14:54:54 +0000 |
commit | bceb3707605f2062e77d45f6644a8a9fed683234 (patch) | |
tree | e19355c4e9ea6e305940eea6a2848323c827525a /src/transport | |
parent | e43cf0161e915dbca5c717610a6e256d2a932ac1 (diff) |
- fixing 0002674
git-svn-id: https://gnunet.org/svn/gnunet@25165 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 88ac261b19..d19d0c9997 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -1178,7 +1178,11 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if (GNUNET_YES == s->put_reconnect_required) { s->put_reconnect_required = GNUNET_NO; - client_connect_put(s); + if (GNUNET_SYSERR == client_connect_put(s)) + { + GNUNET_break (s->client_put == NULL); + GNUNET_break (s->put_tmp_disconnected == GNUNET_NO); + } } } if (easy_h == s->client_get) @@ -1322,8 +1326,10 @@ client_connect_put (struct Session *s) s->client_put = NULL; s->put.easyhandle = NULL; s->put.s = NULL; + s->put_tmp_disconnected = GNUNET_YES; return GNUNET_SYSERR; } + s->put_tmp_disconnected = GNUNET_NO; return GNUNET_OK; } |