Skip to content

Commit

Permalink
ensure we never start the same wrapper more than once
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@10854 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 15, 2015
1 parent 97b94f6 commit 4c6688e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/net/subprocess_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 4c6688e

Please sign in to comment.