[kupfer] data: Experiment with daemonizing PeriodicRescanner thread



commit 0db4c478ad19875d35c395e75589772297670396
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Nov 6 17:55:43 2009 +0100

    data: Experiment with daemonizing PeriodicRescanner thread

 kupfer/data.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/data.py b/kupfer/data.py
index 3e812f0..3c13c5c 100644
--- a/kupfer/data.py
+++ b/kupfer/data.py
@@ -194,6 +194,7 @@ class PeriodicRescanner (gobject.GObject, pretty.OutputMixin):
 			self.rescan_source(source)
 		elif not source.is_dynamic():
 			thread = threading.Thread(target=self.rescan_source, args=(source,))
+			thread.setDaemon(True)
 			thread.start()
 
 	def rescan_source(self, source):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]