ShokoAnime / ShokoServer

Repository for Shoko Server.
https://shokoanime.com/
MIT License
413 stars 74 forks source link

Problems ejecting an external drive #497

Open OronDF343 opened 8 years ago

OronDF343 commented 8 years ago

JMM Server prevents me from using the windows "eject" option to safely remove my external drive of anime. I'd appreciate it if JMM Server could release the handle to the drive when it is not needed - every FileStream should be properly closed.

da3dsoul commented 8 years ago

It you can help narrow down which accesses aren't closed, that'd be awesome. There are several ways we access files. There's hashing, file serving for streaming, file serving for local, file renaming, and drop folders that I can think off the top of my head. Even if you can say which you use or don't use.

OronDF343 commented 8 years ago

The drive is set as a source folder for anime hashing and as a drop destination. All queues are empty on the server (everything idle), and the drive even spins down at some point.

da3dsoul commented 8 years ago

OK... So we need to look at everything except renaming...

OronDF343 commented 8 years ago

I'll try to do some more testing when I have the time

bond4u commented 7 years ago

There's checkbox "watch for new files" in new import folder dialog which is probably the problem.