From 17af09a5cc52b8aabc6721cae588d8edd195e9d9 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 31 Aug 2018 14:58:15 -0700 Subject: Postgres Integration has begun --- controller/RethinkDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller/RethinkDB.cpp') diff --git a/controller/RethinkDB.cpp b/controller/RethinkDB.cpp index a46d033f..d54b30b6 100644 --- a/controller/RethinkDB.cpp +++ b/controller/RethinkDB.cpp @@ -88,7 +88,7 @@ RethinkDB::RethinkDB(EmbeddedNetworkController *const nc,const Identity &myId,co if (_run != 1) break; json tmp(json::parse(cur.next().as_json())); if ((tmp["type"] == "state")&&(tmp["state"] == "ready")) { - if (--this->_ready == 0) { + if (++this->_ready == 2) { if (_waitNoticePrinted) fprintf(stderr,"[%s] NOTICE: %.10llx controller RethinkDB data download complete." ZT_EOL_S,_timestr(),(unsigned long long)_myAddress.toInt()); this->_readyLock.unlock(); -- cgit v1.2.3