Skip to content

Commit

Permalink
closing the display ourselves can trigger segfaults, best to leave it…
Browse files Browse the repository at this point in the history
… to the garbage collection?

git-svn-id: https://xpra.org/svn/Xpra/trunk@19875 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 8, 2018
1 parent d6e766a commit 273e69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def close_gtk_display():
# Close our display(s) first, so the server dying won't kill us.
# (if gtk has been loaded)
gdk_mod = sys.modules.get("gtk.gdk") or sys.modules.get("gi.repository.Gdk")
if gdk_mod:
if gdk_mod and envbool("XPRA_CLOSE_GTK_DISPLAY", False):
for d in gdk_mod.display_manager_get().list_displays():
d.close()

Expand Down

0 comments on commit 273e69e

Please sign in to comment.