-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js:usbdisk wasEjected returns always true (macOS mount) #106
Comments
Interesting find... to be completely honest, the wasEjected logic is a bit of a hack because I couldn't find any reliable metric for when ejection happens, so I remember using the next best things from the events that the code handled, and seems like you just found a side effect |
Maybe it's my mistake. I did play a little bit around. If I use the code above alone it works. If I use it with badusb before it didn't. Maybe you can close this issue.
|
When I add a delay(5000); after badusb.quit() it works. Sorry for wasting your time. |
Still, this deserves some more investigation. But very good that you found more info on it! I'll try to have a look when I get the chance |
Describe the bug.
Using usbdisk.wasEjected() in javascript returns always true when mounted in macOS. Mass Storage app works correct.
Reproduction
Target
No response
Logs
No response
Anything else?
I'm running the latest dev build
The text was updated successfully, but these errors were encountered: