Skip to content

Commit

Permalink
fuse/context: ignore interrupt within one second (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD authored Jul 1, 2022
1 parent 8311f97 commit 6dbc25b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/fuse/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ func (c *fuseContext) Cancel() {
}

func (c *fuseContext) Canceled() bool {
if c.Duration() < time.Second {
return false
}
if c.canceled {
return true
}
Expand Down

0 comments on commit 6dbc25b

Please sign in to comment.