diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-29 14:54:54 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-29 14:54:54 +0000 |
commit | 12d56e4d734267cdfeed7e42babdbc0f87d45264 (patch) | |
tree | e19355c4e9ea6e305940eea6a2848323c827525a /src/transport/plugin_transport_http_client.c | |
parent | 01a6f7fa2652d6b5b23e10238e740b0aa39f7845 (diff) | |
download | gnunet-12d56e4d734267cdfeed7e42babdbc0f87d45264.tar.gz gnunet-12d56e4d734267cdfeed7e42babdbc0f87d45264.zip |
- fixing 0002674
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-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 88ac261b1..d19d0c999 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) | |||
1178 | if (GNUNET_YES == s->put_reconnect_required) | 1178 | if (GNUNET_YES == s->put_reconnect_required) |
1179 | { | 1179 | { |
1180 | s->put_reconnect_required = GNUNET_NO; | 1180 | s->put_reconnect_required = GNUNET_NO; |
1181 | client_connect_put(s); | 1181 | if (GNUNET_SYSERR == client_connect_put(s)) |
1182 | { | ||
1183 | GNUNET_break (s->client_put == NULL); | ||
1184 | GNUNET_break (s->put_tmp_disconnected == GNUNET_NO); | ||
1185 | } | ||
1182 | } | 1186 | } |
1183 | } | 1187 | } |
1184 | if (easy_h == s->client_get) | 1188 | if (easy_h == s->client_get) |
@@ -1322,8 +1326,10 @@ client_connect_put (struct Session *s) | |||
1322 | s->client_put = NULL; | 1326 | s->client_put = NULL; |
1323 | s->put.easyhandle = NULL; | 1327 | s->put.easyhandle = NULL; |
1324 | s->put.s = NULL; | 1328 | s->put.s = NULL; |
1329 | s->put_tmp_disconnected = GNUNET_YES; | ||
1325 | return GNUNET_SYSERR; | 1330 | return GNUNET_SYSERR; |
1326 | } | 1331 | } |
1332 | s->put_tmp_disconnected = GNUNET_NO; | ||
1327 | return GNUNET_OK; | 1333 | return GNUNET_OK; |
1328 | } | 1334 | } |
1329 | 1335 | ||