-also check cth_in_progress here
authorChristian Grothoff <christian@grothoff.org>
Sat, 9 Jun 2012 19:49:32 +0000 (19:49 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 9 Jun 2012 19:49:32 +0000 (19:49 +0000)
src/fs/gnunet-service-fs_cp.c

index e84993bd38b07c402da69e3866c339e3ea2dd2f9..2f1ba1a2841bccc67f8a3582abcee2f7072a2394 100644 (file)
@@ -562,7 +562,7 @@ ats_reserve_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
   }
   cp->did_reserve = GNUNET_YES;
   pth = cp->pth_head;
-  if ((NULL != pth) && (NULL == pth->cth))
+  if ((NULL != pth) && (NULL == pth->cth) && (0 == pth->cth_in_progress))
   {
     /* reservation success, try transmission now! */
     pth->cth_in_progress++;