summaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-02 17:35:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-02 17:35:47 +0100
commitb5ee6b7b4ee506712f51e1b90e9256c4b0c0c603 (patch)
tree7d8bb4398ab52b58a5223d37e058eaea6c72f963 /src/crypto
parente1369ff7e8fc02116b9c4261036f0e42e3423cf4 (diff)
downloadwallet-core-b5ee6b7b4ee506712f51e1b90e9256c4b0c0c603.tar.gz
wallet-core-b5ee6b7b4ee506712f51e1b90e9256c4b0c0c603.tar.bz2
wallet-core-b5ee6b7b4ee506712f51e1b90e9256c4b0c0c603.zip
pending operations WIP
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/cryptoApi.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crypto/cryptoApi.ts b/src/crypto/cryptoApi.ts
index 5ef787711..ee7600073 100644
--- a/src/crypto/cryptoApi.ts
+++ b/src/crypto/cryptoApi.ts
@@ -28,7 +28,6 @@ import {
CoinRecord,
DenominationRecord,
RefreshSessionRecord,
- ReserveRecord,
TipPlanchet,
WireFee,
} from "../dbTypes";
@@ -195,7 +194,7 @@ export class CryptoApi {
};
this.resetWorkerTimeout(ws);
work.startTime = timer.performanceNow();
- ws.w!.postMessage(msg);
+ setImmediate(() => ws.w!.postMessage(msg));
}
resetWorkerTimeout(ws: WorkerState) {
@@ -316,6 +315,7 @@ export class CryptoApi {
throw Error("assertion failed");
}
this.workQueues[priority].push(workItem);
+ console.log("queueing crypto work");
return;
}
@@ -323,7 +323,6 @@ export class CryptoApi {
if (ws.currentWorkItem !== null) {
continue;
}
-
this.wake(ws, workItem);
return;
}