Skip to content

[Win] Shut viewer down on sleep or hybernation #5719

@akleshchev

Description

@akleshchev

Viewer can't keep heartbeat up when PC goes to sleep. Futhermore PCs frequently restart instead of waking up (ex: power issues), which leaves viewer's markers behind and on next launch viewer reports a 'crash'.

Either shut down viewer or at least log and handle it in some way that would not result in 'crashes' or other issues. Ideally 'changes' should be saved, but OS doesn't give a lot of time to save cache.

Test Plan

Engage Window's sleep with viewer running.



This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #5719 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @akleshchev (replace 20 with the amount, and @akleshchev with the user to tip).

📖 If you want to learn more, check out our documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions