# windows: Fix \`Zed\` freezing when resuming from sleep \(\#11589\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9772b7ac33d9679db30bcc7305de717d52f09da2

Requested commit: 9772b7ac33d9679db30bcc7305de717d52f09da2

Commit: 9772b7ac33d9679db30bcc7305de717d52f09da2

Tree: 9d45fb2c52a59b1e37d519180fc152e3938b9321

Author: 张小白

Committer: GitHub

## Message

```
windows: Fix `Zed` freezing when resuming from sleep (#11589)

It seems that on the first frame after the system resumes from sleep,
`dcomp_vsync_fn` mistakenly detects the `timer_stop_event` triggering
and exits the loop.

Release Notes:

- N/A
```

## Parents

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

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