Module: check_mk
Branch: master
Commit: 271c137a40d2876ed3800df1b4544c890a56113a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=271c137a40d287…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 19 10:46:23 2013 +0100
FIX: fix unplugging in htmllib when not plugged
---
web/htdocs/htmllib.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index dee2564..2128ad4 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -248,8 +248,9 @@ class html:
self.plugged_text = ''
def flush(self):
- self.lowlevel_write(self.plugged_text)
- self.plugged_text = ''
+ if self.plugged:
+ self.lowlevel_write(self.plugged_text)
+ self.plugged_text = ''
def drain(self):
if self.plugged: