changeset 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 f6b975db2545
children 3678cddf99f9
files piecrust/serving/procloop.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/serving/procloop.py	Tue Feb 13 11:10:55 2018 -0800
+++ b/piecrust/serving/procloop.py	Tue Feb 13 11:11:48 2018 -0800
@@ -237,7 +237,7 @@
 
             pl = self._proc_loop
             with pl._lock:
-                pl._ops.append({'op': 'reinit'})
+                pl._ops.append({'op': 'reinit', 'time': time.time()})
                 pl._event.set()