# Fix deadlock when handling incoming RPC messages · gitcafe/zed

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

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

Visibility: public

Requested revision: 9a9c8aec3f0342f1c1cec7f25f2af0c25e273304

Requested commit: 9a9c8aec3f0342f1c1cec7f25f2af0c25e273304

Commit: 9a9c8aec3f0342f1c1cec7f25f2af0c25e273304

Tree: 007c3d9dc8fdb3d951a12fb6f16d98847b75ab28

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Fix deadlock when handling incoming RPC messages

We need to drop the lock on the rpc::ClientState when handling an incoming messages in case those message handlers attempt to interact with the client and grab the lock.

```

## Parents

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

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