# Fix circular locking in prompts \(\#6456\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 865369882e83d009dd75117774cfae9b1f033666

Requested commit: 865369882e83d009dd75117774cfae9b1f033666

Commit: 865369882e83d009dd75117774cfae9b1f033666

Tree: 997bf6a7cdcb6c4ab621c8c26aaa17056dd2f9d4

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix circular locking in prompts (#6456)

Sometimes Cocoa calls app delegate methods (notably the display link)
while we're calling Cocoa methods. This causes a deadlock unless we
are careful to run cocao methods while we're not holding our internal
locks

Release Notes:

- Fixed a crash when opening the MacOS Save As dialogue.
```

## Parents

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

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

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