mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
make db-updater daemon thread
This commit is contained in:
parent
9dcf3b7eea
commit
d86517606b
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ public class DbPersistence implements Persistence {
|
||||||
|
|
||||||
private synchronized void createUpdateExecutor(Wallet masterWallet) {
|
private synchronized void createUpdateExecutor(Wallet masterWallet) {
|
||||||
if(updateExecutor == null) {
|
if(updateExecutor == null) {
|
||||||
BasicThreadFactory factory = new BasicThreadFactory.Builder().namingPattern(masterWallet.getFullName() + "-dbupdater").daemon(false).priority(Thread.NORM_PRIORITY).build();
|
BasicThreadFactory factory = new BasicThreadFactory.Builder().namingPattern(masterWallet.getFullName() + "-dbupdater").daemon(true).priority(Thread.NORM_PRIORITY).build();
|
||||||
updateExecutor = Executors.newSingleThreadExecutor(factory);
|
updateExecutor = Executors.newSingleThreadExecutor(factory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue