Mercurial > piecrust2
comparison piecrust/serving/procloop.py @ 1059:292e3a1316d8
serve: Fix crash when editing `config.yml` while serving.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Feb 2018 11:11:48 -0800 |
parents | 971b4d67e82a |
children |
comparison
equal
deleted
inserted
replaced
1058:f6b975db2545 | 1059:292e3a1316d8 |
---|---|
235 if event.src_path != self._path: | 235 if event.src_path != self._path: |
236 return | 236 return |
237 | 237 |
238 pl = self._proc_loop | 238 pl = self._proc_loop |
239 with pl._lock: | 239 with pl._lock: |
240 pl._ops.append({'op': 'reinit'}) | 240 pl._ops.append({'op': 'reinit', 'time': time.time()}) |
241 pl._event.set() | 241 pl._event.set() |
242 | 242 |
243 | 243 |
244 class WatchdogProcessingLoop(ProcessingLoopBase): | 244 class WatchdogProcessingLoop(ProcessingLoopBase): |
245 def __init__(self, appfactory, out_dir): | 245 def __init__(self, appfactory, out_dir): |