fix
[oweals/gnunet.git] / src / datastore / datastore_api.c
index aaad7118fca5a00a6ec781b4d800a370e5a7e5e2..21675b0b7c0fecb1b54858cf676ff1e793f3e9bb 100644 (file)
@@ -682,11 +682,11 @@ process_status_message (void *cls,
   if (msg == NULL)
     {      
       free_queue_entry (qe);
+      if (NULL == h->client)
+       return; /* forced disconnect */
       rc.cont (rc.cont_cls, 
               GNUNET_SYSERR,
               _("Failed to receive response from database."));
-      if (NULL == h->client)
-       return; /* forced disconnect */
       if (was_transmitted == GNUNET_YES)
        do_disconnect (h);
       return;