From 4c6688eb382cd3936acb3e40d7c132b80d41530d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 15 Oct 2015 15:23:59 +0000 Subject: [PATCH] ensure we never start the same wrapper more than once git-svn-id: https://xpra.org/svn/Xpra/trunk@10854 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/net/subprocess_wrapper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xpra/net/subprocess_wrapper.py b/src/xpra/net/subprocess_wrapper.py index 7cac71d848..466696c6f7 100644 --- a/src/xpra/net/subprocess_wrapper.py +++ b/src/xpra/net/subprocess_wrapper.py @@ -324,10 +324,14 @@ def subprocess_exit(self, *args): self._fire_callback("exit") def start(self): + self.start = self.fail_start self.process = self.exec_subprocess() self.protocol = self.make_protocol() self.protocol.start() + def fail_start(self): + raise Exception("this wrapper has already been started") + def abort_test(self, action): p = self.process if p is None or p.poll():