Author: remi
Date: 2009-06-17 16:48:51 +0200 (Wed, 17 Jun 2009)
New Revision: 4824

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
Log:
* fixed possible bugs in the server->plugin events

Modified: 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
     2009-06-17 14:47:57 UTC (rev 4823)
+++ 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
     2009-06-17 14:48:51 UTC (rev 4824)
@@ -207,8 +207,11 @@
         if not self.__getRun():
             return
         if self.__daemon:
-            self.__process.stdin.write("STOP\n")
-            self.__process.stdin.flush()
+            try:
+                self.__process.stdin.write("STOP\n")
+                self.__process.stdin.flush()
+            except:
+                return
             timeout = 5.0
             while self.__process.poll() == None:
                 timeout -= 0.1
@@ -238,8 +241,11 @@
         eventString += eventName
         for value in eventValues:
             eventString += ":" + str(value)
-        self.__process.stdin.write("%s\n" % eventString)
-        self.__process.stdin.flush()
+        try:
+            self.__process.stdin.write("%s\n" % eventString)
+            self.__process.stdin.flush()
+        except:
+            pass
 
     # 
--------------------------------------------------------------------------
     # Loop to handling the stdout messages.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to