scratchfoundation / scratch-vm

Virtual Machine used to represent, run, and maintain the state of programs for Scratch 3.0
http://scratchfoundation.github.io/scratch-vm/
BSD 3-Clause "New" or "Revised" License
1.2k stars 1.49k forks source link

Microbit unresponsive after computer wakes from sleep #1402

Open ericrosenbaum opened 6 years ago

ericrosenbaum commented 6 years ago

Expected Behavior

When you wake a computer from sleep that had a bluetooth device connected before sleep, it should still be connected (or if necessary, it should become explicitly disconnected).

Actual Behavior

When I have a microbit connected and then the computer goes to sleep (for, say, an hour), on waking, the status indicator still shows connected, but the blocks no longer work for sending or receiving.

Steps to Reproduce

Operating System and Browser

Mac OS 10.13.2 Chrome 67.0

evhan55 commented 6 years ago

I wonder if this is related to https://github.com/LLK/scratch-link/pull/82 @ericrosenbaum @cwillisf,

or, at least, if it can be solved by reconnecting, now

evhan55 commented 6 years ago

This might already be somewhat fixed by the 5 second 'alive' check in the microbit