Skip to content

Commit

Permalink
provocate bug with sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
philippotto committed Mar 13, 2023
1 parent 0f6233f commit 37692e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/javascripts/oxalis/model/sagas/annotation_saga.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
setBlockedByUserAction,
type SetOthersMayEditForAnnotationAction,
} from "oxalis/model/actions/annotation_actions";
import { sleep } from "libs/utils";
import type { EditableAnnotation } from "admin/admin_rest_api";
import {
editAnnotation,
Expand Down Expand Up @@ -249,6 +250,7 @@ export function* acquireAnnotationMutexMaybe(): Saga<void> {
while (shallTryAcquireMutex) {
if (isInitialRequest) {
yield* put(setAnnotationAllowUpdateAction(false));
yield* call(sleep, 5000);
}
try {
const { canEdit, blockedByUser } = yield* retry(
Expand Down

0 comments on commit 37692e7

Please sign in to comment.