From 4ebeb6534145bcb187e672228a65bf99eae79926 Mon Sep 17 00:00:00 2001 From: PorcelainMouse Date: Sun, 22 Dec 2024 00:01:19 -0800 Subject: [PATCH] bugfix: double delete of pidfile Removed redundant os.remove(options.pidfile). --- deluge/core/daemon_entry.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/deluge/core/daemon_entry.py b/deluge/core/daemon_entry.py index c49fd2a355..837ea53b11 100644 --- a/deluge/core/daemon_entry.py +++ b/deluge/core/daemon_entry.py @@ -132,8 +132,6 @@ def run_daemon(options): sys.exit(1) finally: log.info('Exiting...') - if options.pidfile: - os.remove(options.pidfile) return run_profiled( run_daemon, options, output_file=options.profile, do_profile=options.profile