# workspace: Fix crash when closing active item mid-update \(\#61336\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/339f4237c4c8080ad46411f73f2640dca32d6c12)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 339f4237c4c8080ad46411f73f2640dca32d6c12

Requested commit: 339f4237c4c8080ad46411f73f2640dca32d6c12

Commit: 339f4237c4c8080ad46411f73f2640dca32d6c12

Tree: 0c16c1751cc35d4410356fd06b7be04ada205841

Author: Jakub Konka

Committer: GitHub

## Message

```
workspace: Fix crash when closing active item mid-update (#61336)

Closes https://github.com/zed-industries/zed/issues/61182

Supersedes https://github.com/zed-industries/zed/pull/61232

Closes FR-128

Release Notes:

- Fixed crash when closing active item while the workspace was
mid-update (double-lease panic).

Co-authored-by: apoorva-01 <vermaapoorva0510@gmail.com>
```

## Parents

- [e651b6ddc31f4e9e2816d40d9498fd69ed117b44](https://git.cafe/gitcafe/zed/commit/e651b6ddc31f4e9e2816d40d9498fd69ed117b44?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/339f4237c4c8080ad46411f73f2640dca32d6c12?format=markdown)
