From a835efbc276934f5150340251d92cd742e2b0b86 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 16 Aug 2013 05:23:35 +0000
Subject: [PATCH] report error on blank message only for messages other than
 info/warning/etc.

---
 Fltk/onelabGroup.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Fltk/onelabGroup.cpp b/Fltk/onelabGroup.cpp
index 428e2a5c5e..e9a0e5465e 100644
--- a/Fltk/onelabGroup.cpp
+++ b/Fltk/onelabGroup.cpp
@@ -179,7 +179,11 @@ bool gmshLocalNetworkClient::receiveMessage(gmshLocalNetworkClient *master)
     return false;
   }
 
-  if(message == blank){
+  if(message == blank && !(type == GmshSocket::GMSH_PROGRESS ||
+                           type == GmshSocket::GMSH_INFO ||
+                           type == GmshSocket::GMSH_WARNING ||
+                           type == GmshSocket::GMSH_ERROR)){
+    // we should still allow blank msg strings to be sent
     Msg::Error("Abnormal server termination (blank message: client not stopped?)");
     return false;
   }
-- 
GitLab