make sure to use workerthread only if they are really set to true

This commit is contained in:
einhornimmond 2025-01-15 19:05:07 +01:00
parent f1d9dabbb3
commit 249c5dc32d
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export const SecretKeyCryptographyCreateKey = (
return encryptionKeyHash.readBigUInt64LE()
}
if (CONFIG.USE_CRYPTO_WORKER) {
if (CONFIG.USE_CRYPTO_WORKER === true) {
worker({
SecretKeyCryptographyCreateKey,
})

View File

@ -23,7 +23,7 @@ const configLoginServerKey = Buffer.from(CONFIG.LOGIN_SERVER_KEY, 'hex')
let encryptionWorkerPool: Pool | undefined
if (CONFIG.USE_CRYPTO_WORKER) {
if (CONFIG.USE_CRYPTO_WORKER === true) {
encryptionWorkerPool = pool(
path.join(__dirname, '..', '..', 'build', 'src', 'password', '/EncryptionWorker.js'),
{