mirror of
https://github.com/9001/copyparty.git
synced 2025-11-02 04:53:15 +00:00
avoid windows funk
This commit is contained in:
@@ -274,6 +274,12 @@ class ThumbSrv(object):
|
||||
if getattr(ex, "returncode", 0) != 321:
|
||||
with open(tpath, "wb") as _:
|
||||
pass
|
||||
else:
|
||||
# ffmpeg may spawn empty files on windows
|
||||
try:
|
||||
os.unlink(tpath)
|
||||
except:
|
||||
pass
|
||||
|
||||
with self.mutex:
|
||||
subs = self.busy[tpath]
|
||||
|
||||
Reference in New Issue
Block a user