summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/journal_uploadserver.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/journal_uploadserver.cc b/server/src/journal_uploadserver.cc
index 06882b5..a1299ec 100644
--- a/server/src/journal_uploadserver.cc
+++ b/server/src/journal_uploadserver.cc
@@ -29,7 +29,7 @@
#include "journal_commit.h"
-//#define USE_MULTIPLE_USERS
+#define USE_MULTIPLE_USERS
static inline bool iswhitespace(char c)
{
@@ -180,6 +180,8 @@ void JournalUploadServer::commit()
journal_commit(patientID().c_str(), olduser.c_str(),
host.c_str(), port,
resume.c_str(), resume.size());
+ // FIXME - UGLY HACK: Avoid upload server spooling in the wrong order.
+ usleep(200000);
resume = "";
}