gnunet-svn
[Top][All Lists]
Advanced

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

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


From: grothoff
Subject: [GNUnet-SVN] r3982 - GNUnet/src/applications/fs/fsui
Date: Tue, 19 Dec 2006 16:44:38 -0800 (PST)

Author: grothoff
Date: 2006-12-19 16:44:37 -0800 (Tue, 19 Dec 2006)
New Revision: 3982

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

Modified: GNUnet/src/applications/fs/fsui/searchtest.c
===================================================================
--- GNUnet/src/applications/fs/fsui/searchtest.c        2006-12-20 00:41:07 UTC 
(rev 3981)
+++ GNUnet/src/applications/fs/fsui/searchtest.c        2006-12-20 00:44:37 UTC 
(rev 3982)
@@ -53,6 +53,8 @@
 static struct FSUI_Context * ctx;
 
 static struct MUTEX * lock;
+s
+tatic volatile enum FSUI_EventType waitForEvent;
 
 static void * eventCallback(void * cls,
                            const FSUI_Event * event) {
@@ -96,7 +98,8 @@
   default:
     break;
   }
-  lastEvent = event->type;
+  if (lastEvent != waitForEvent)
+    lastEvent = event->type;
   MUTEX_UNLOCK(lock);
   return NULL;
 }
@@ -186,6 +189,7 @@
   kuri = ECRS_parseListKeywordURI(NULL,
                                  2,
                                  (const char**)keywords);
+  waitForEvent = FSUI_upload_completed;
   upload =
        FSUI_startUpload(ctx,
                         fn,
@@ -232,6 +236,7 @@
   CHECK(uri != NULL);
   fn = makeName(43);
   meta = ECRS_createMetaData();
+  waitForEvent = FSUI_download_completed;
   download = FSUI_startDownload(ctx,
                                0,
                                NO,
@@ -255,6 +260,7 @@
   }
   FSUI_stopDownload(ctx, download);
   fn = makeName(42);
+  waitForEvent = FSUI_unindex_completed;
   unindex = FSUI_startUnindex(ctx, fn);
   FREE(fn);
   fn = NULL;





reply via email to

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