Skip to content

Commit

Permalink
fix typo and prevent race in cleanup
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8908 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 3, 2015
1 parent 62f8409 commit f58dbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/net/subprocess_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# gtk.main()
# def quit(self):
# gtk.main_quit()
mainloop = gobject.mainloop
mainloop = gobject.MainLoop


class subprocess_callee(object):
Expand Down Expand Up @@ -288,9 +288,9 @@ def stop(self):
log.warn("failed to stop the wrapped subprocess %s: %s", proc, e)
p = self.protocol
if p:
self.protocol = None
try:
p.close()
self.protocol = None
except Exception as e:
log.warn("failed to close the subprocess connection: %s", p, e)

Expand Down

0 comments on commit f58dbe4

Please sign in to comment.