mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SEARCH-197
- Fixed freeze issue
This commit is contained in:
parent
e09e708111
commit
8d4cfabec3
@ -49,7 +49,9 @@ class Crypto {
|
|||||||
};
|
};
|
||||||
const encrypt = crypto.encrypt(config);
|
const encrypt = crypto.encrypt(config);
|
||||||
|
|
||||||
input.pipe(encrypt).pipe(outputEncryption).on('finish', (err) => {
|
let encryptionProcess = input.pipe(encrypt).pipe(outputEncryption);
|
||||||
|
|
||||||
|
encryptionProcess.on('finish', (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(new Error(err));
|
reject(new Error(err));
|
||||||
}
|
}
|
||||||
@ -81,7 +83,9 @@ class Crypto {
|
|||||||
};
|
};
|
||||||
const decrypt = crypto.decrypt(config);
|
const decrypt = crypto.decrypt(config);
|
||||||
|
|
||||||
input.pipe(decrypt).pipe(output).on('finish', () => {
|
let decryptionProcess = input.pipe(decrypt).pipe(output);
|
||||||
|
|
||||||
|
decryptionProcess.on('finish', () => {
|
||||||
|
|
||||||
if (!fs.existsSync(`${this.dump}/decrypted.tar.lz4`)){
|
if (!fs.existsSync(`${this.dump}/decrypted.tar.lz4`)){
|
||||||
// will be handling after implementing in client app
|
// will be handling after implementing in client app
|
||||||
|
Loading…
Reference in New Issue
Block a user