gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1769 - GNUnet/src/applications/fs/fsui


From: grothoff
Subject: [GNUnet-SVN] r1769 - GNUnet/src/applications/fs/fsui
Date: Fri, 19 Aug 2005 22:21:09 -0700 (PDT)

Author: grothoff
Date: 2005-08-19 22:21:07 -0700 (Fri, 19 Aug 2005)
New Revision: 1769

Modified:
   GNUnet/src/applications/fs/fsui/upload.c
Log:
fix

Modified: GNUnet/src/applications/fs/fsui/upload.c
===================================================================
--- GNUnet/src/applications/fs/fsui/upload.c    2005-08-20 02:28:16 UTC (rev 
1768)
+++ GNUnet/src/applications/fs/fsui/upload.c    2005-08-20 05:21:07 UTC (rev 
1769)
@@ -322,6 +322,7 @@
   ECRS_FileInfo fi;
   int ret;
   char * inboundFN;
+  int sendEvent = YES;
 
   GNUNET_ASSERT(utc->main_filename != NULL);
   inboundFN
@@ -400,7 +401,9 @@
     if (ret != OK) {
       event.type = FSUI_upload_error;
       event.data.message = _("Upload failed.\n");
-    } /* for success, uploadDirectory sends event already! */
+    } else { /* for success, uploadDirectory sends event already! */
+      sendEvent = NO;
+    }
     utc->filename = NULL;
   } else {
     event.type = FSUI_upload_error;
@@ -449,9 +452,9 @@
   fi.meta = utc->meta;
   FSUI_publishToCollection(utc->ctx,
                           &fi);
-                       
-  utc->ctx->ecb(utc->ctx->ecbClosure,
-               &event);
+  if (sendEvent)
+    utc->ctx->ecb(utc->ctx->ecbClosure,
+                 &event);
   if (uri != NULL)
     ECRS_freeUri(uri);
 
@@ -462,7 +465,7 @@
     ECRS_freeUri(utc->uri);
   if (utc->globalUri != NULL)
     ECRS_freeUri(utc->globalUri);
-  EXTRACTOR_removeAll(utc->extractors);
+  //  EXTRACTOR_removeAll(utc->extractors);
   utc->tl->isDone = YES;
   FREE(utc);
   FREENONNULL(inboundFN);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]