diff --git a/service/pool/Main.mo b/service/pool/Main.mo index 48ee9f1d..0a874d9f 100644 --- a/service/pool/Main.mo +++ b/service/pool/Main.mo @@ -215,7 +215,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this { func updateTimer(info: Types.CanisterInfo) { func job() : async () { - pool.removeTimer(info.id); + pool.removeTimer(info.id); // It is important that the timer job checks for the timestamp first. // This prevents late-runner jobs from deleting newly installed code. await removeCode(info); diff --git a/service/pool/Types.mo b/service/pool/Types.mo index c89770a1..b22e3049 100644 --- a/service/pool/Types.mo +++ b/service/pool/Types.mo @@ -151,7 +151,7 @@ module { }; }; - public func removeTimer(cid: Principal) { + public func removeTimer(cid: Principal) { timers.delete cid; };