Fix Qt shutdown and Linux wallet build

This commit is contained in:
root
2026-05-02 19:53:47 +00:00
parent 7173f6fe48
commit ff3cedd772
7 changed files with 60 additions and 25 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include "wallet/walletdb.h"
#include "base58.h"
#include "init.h"
#include "protocol.h"
#include "serialize.h"
#include "sync.h"
@@ -916,7 +917,7 @@ void ThreadFlushWalletDB(const string& strFile)
unsigned int nLastSeen = nWalletDBUpdated;
unsigned int nLastFlushed = nWalletDBUpdated;
int64_t nLastWalletUpdate = GetTime();
while (true) {
while (!ShutdownRequested()) {
MilliSleep(500);
if (nLastSeen != nWalletDBUpdated) {