Carry persistence policy across reconnects

This commit is contained in:
Dan Janosik
2020-07-02 12:04:11 -04:00
parent 5b3a2b728d
commit bd4d5f491e

View File

@@ -91,7 +91,13 @@ class ElectrumClient extends Client {
reconnect() {
debugLog("Electrum reconnecting...");
this.initSocket();
return this.initElectrum(this.electrumConfig);
if (this.persistencePolicy != null) {
return this.initElectrum(this.electrumConfig, this.persistencePolicy);
} else {
return this.initElectrum(this.electrumConfig);
}
}
// ElectrumX API