mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix small annoyances,
* mute exception on early shutdown * sfx: give the utime thread a name
This commit is contained in:
parent
5c1e23907d
commit
2c92dab165
|
@ -461,7 +461,13 @@ class Up2k(object):
|
||||||
# important; not deferred by db_act
|
# important; not deferred by db_act
|
||||||
timeout = self._check_lifetimes()
|
timeout = self._check_lifetimes()
|
||||||
|
|
||||||
timeout = min(timeout, now + self._check_xiu())
|
try:
|
||||||
|
timeout = min(timeout, now + self._check_xiu())
|
||||||
|
except Exception as ex:
|
||||||
|
if "closed cursor" in str(ex):
|
||||||
|
self.log("sched_rescan: lost db")
|
||||||
|
return
|
||||||
|
raise
|
||||||
|
|
||||||
with self.mutex:
|
with self.mutex:
|
||||||
for vp, vol in sorted(self.asrv.vfs.all_vols.items()):
|
for vp, vol in sorted(self.asrv.vfs.all_vols.items()):
|
||||||
|
|
|
@ -398,7 +398,7 @@ def run(tmp, j2, ftp):
|
||||||
msg("sfxdir:", tmp)
|
msg("sfxdir:", tmp)
|
||||||
msg()
|
msg()
|
||||||
|
|
||||||
t = threading.Thread(target=utime, args=(tmp,))
|
t = threading.Thread(target=utime, args=(tmp,), name="utime")
|
||||||
t.daemon = True
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ def run():
|
||||||
msg(" rsrc dir:", rsrc)
|
msg(" rsrc dir:", rsrc)
|
||||||
msg()
|
msg()
|
||||||
|
|
||||||
t = threading.Thread(target=utime, args=(rsrc,))
|
t = threading.Thread(target=utime, args=(rsrc,), name="utime")
|
||||||
t.daemon = True
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue