fix(core): update

This commit is contained in:
Philipp Kunz 2018-11-23 19:26:41 +01:00
parent 10bff069c1
commit 9c2d584170

View File

@ -61,9 +61,11 @@ export class Timer {
}
public pause() {
clearTimeout(this.currentTimeout);
this.currentTimeout = null;
this.pausedAt = TimeStamp.fromTimeStamp(this.startedAt);
if (this.startedAt) {
clearTimeout(this.currentTimeout);
this.currentTimeout = null;
this.pausedAt = TimeStamp.fromTimeStamp(this.startedAt);
}
}
public resume() {