# fix\(server\): turns already holding the install lock never wait behind a waiting install · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/2934544e9f71cfa18be32aff69e7d499719a1b17)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 2934544e9f71cfa18be32aff69e7d499719a1b17

Requested commit: 2934544e9f71cfa18be32aff69e7d499719a1b17

Commit: 2934544e9f71cfa18be32aff69e7d499719a1b17

Tree: b728903a314080d4fb8f97ca45548d2c23bbc5ae

Author: maria-rcks

Committer: maria-rcks

## Message

```
fix(server): turns already holding the install lock never wait behind a waiting install

Start, resume, ensure, and snapshot calls for a session that holds a host lease join that lease, and helpers inherit their own active token, so a waiting install cannot deadlock against them while unrelated new turns still queue behind it. An acquired gate is released when the follow-up liveness check or lease removal fails, and a pinned npm install never gets an installation key.

```

## Parents

- [35b7f96ebdefd008c09277a721430c90649f0a7b](https://git.cafe/pingdotgg/t3code/commit/35b7f96ebdefd008c09277a721430c90649f0a7b?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/2934544e9f71cfa18be32aff69e7d499719a1b17?format=markdown)
