mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 13:08:28 +00:00
fix pause + remove logs
This commit is contained in:
parent
4dfc34515c
commit
cd1203d1e2
@ -59,7 +59,6 @@ export class Scheduler {
|
|||||||
}, interval);
|
}, interval);
|
||||||
}
|
}
|
||||||
start() {
|
start() {
|
||||||
console.log('start');
|
|
||||||
if (!this.pattern) {
|
if (!this.pattern) {
|
||||||
throw new Error('Scheduler: no pattern set! call .setPattern first.');
|
throw new Error('Scheduler: no pattern set! call .setPattern first.');
|
||||||
}
|
}
|
||||||
@ -67,21 +66,17 @@ export class Scheduler {
|
|||||||
this.started = true;
|
this.started = true;
|
||||||
}
|
}
|
||||||
pause() {
|
pause() {
|
||||||
console.log('pause');
|
|
||||||
this.worker.stop();
|
this.worker.stop();
|
||||||
this.phase = 0;
|
|
||||||
delete this.lastTime;
|
delete this.lastTime;
|
||||||
this.started = false;
|
this.started = false;
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
console.log('stop');
|
|
||||||
this.phase = 0;
|
this.phase = 0;
|
||||||
delete this.lastTime;
|
delete this.lastTime;
|
||||||
this.worker.stop();
|
this.worker.stop();
|
||||||
this.started = false;
|
this.started = false;
|
||||||
}
|
}
|
||||||
setPattern(pat) {
|
setPattern(pat) {
|
||||||
console.log('set pattern!');
|
|
||||||
this.pattern = pat;
|
this.pattern = pat;
|
||||||
}
|
}
|
||||||
setCps(cps = 1) {
|
setCps(cps = 1) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user