diff --git a/src/frontend/app/actions/actions.service.ts b/src/frontend/app/actions/actions.service.ts index c193b2d1632859068e4d5f4c7723b98b3f19e111..21fcd7b6d61980a2d0d51a4edb0c1fb15b9b47b5 100644 --- a/src/frontend/app/actions/actions.service.ts +++ b/src/frontend/app/actions/actions.service.ts @@ -230,6 +230,10 @@ export class ActionsService implements OnDestroy { }) ).subscribe(); + if (!this.functions.empty(this.currentResourceLock)) { + clearInterval(this.currentResourceLock); + } + this.currentResourceLock = setInterval(() => { this.http.put(`../rest/resourcesList/users/${userId}/groups/${groupId}/baskets/${basketId}/lock`, { resources: resIds }).pipe( tap(() => console.debug(`Cycle lock : `, this.currentResourceLock)),