Commits

Matt Chaput committed b0022ee Merge

Merge timer fix.

Comments (0)

Files changed (1)

src/whoosh/writing.py

         # Start timer
         if self.period:
             self.timer = threading.Timer(self.period, self.commit)
+            self.timer.start()
 
     def _make_ram_index(self):
         from whoosh.codec.memory import MemoryCodec
             self.writer = self.index.writer(**self.writerargs)
             if self.period:
                 self.timer = threading.Timer(self.period, self.commit)
+                self.timer.start()
 
     def add_reader(self, reader):
         # Pass through to the underlying on-disk index