[gnote] Do not parse the manifest after we just wrote it



commit a4ba0a105344d5301341e558455f6568577586ed
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Mar 22 15:49:26 2020 +0200

    Do not parse the manifest after we just wrote it

 src/synchronization/gnotesyncclient.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/synchronization/gnotesyncclient.cpp b/src/synchronization/gnotesyncclient.cpp
index f48e6f21..60a28fd2 100644
--- a/src/synchronization/gnotesyncclient.cpp
+++ b/src/synchronization/gnotesyncclient.cpp
@@ -135,8 +135,9 @@ namespace sync {
     m_server_id = "";
 
     if(!sharp::file_exists(manifest_path)) {
-      m_last_sync_date = Glib::DateTime();
+      m_last_sync_date = Glib::DateTime::create_now_utc();
       write(manifest_path);
+      return;
     }
 
     sharp::XmlReader reader(manifest_path);


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