[tuxdroid-svn] r4824 - software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugi
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-06-17 14:48:57
|
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.
|