diff --git a/backend/src/password/EncryptionWorker.ts b/backend/src/password/EncryptionWorker.ts index 5a223bee1..36c08f1b6 100644 --- a/backend/src/password/EncryptionWorker.ts +++ b/backend/src/password/EncryptionWorker.ts @@ -46,7 +46,7 @@ export const SecretKeyCryptographyCreateKey = ( return encryptionKeyHash.readBigUInt64LE() } -if (CONFIG.USE_CRYPTO_WORKER === true) { +if (CONFIG.USE_CRYPTO_WORKER === true && typeof process.send === 'function') { worker({ SecretKeyCryptographyCreateKey, })