diff options
| author | Grant Limberg <grant.limberg@zerotier.com> | 2018-08-31 14:58:15 -0700 |
|---|---|---|
| committer | Grant Limberg <grant.limberg@zerotier.com> | 2018-08-31 14:58:15 -0700 |
| commit | 17af09a5cc52b8aabc6721cae588d8edd195e9d9 (patch) | |
| tree | 8cff30ca6ec4bde45963ba5ed3e8f5ae37ef08df /controller/RethinkDB.cpp | |
| parent | e01c0adff28602d48ad6f0d618bee072ec7843da (diff) | |
| download | infinitytier-17af09a5cc52b8aabc6721cae588d8edd195e9d9.tar.gz infinitytier-17af09a5cc52b8aabc6721cae588d8edd195e9d9.zip | |
Postgres Integration has begun
Diffstat (limited to 'controller/RethinkDB.cpp')
| -rw-r--r-- | controller/RethinkDB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
