update to monero-ts v0.9.2 with typescript

This commit is contained in:
woodser 2023-10-02 08:16:54 -04:00
parent c6eb746e86
commit 90f59155e1
11 changed files with 365 additions and 345 deletions

View file

@ -20,6 +20,8 @@ class TaskLooper {
* @param {int} periodInMs the loop period in milliseconds
*/
start(periodInMs) {
if (periodInMs <= 0)
throw new Error("Looper period must be greater than 0 ms");
if (this._isStarted)
return;
this._isStarted = true;