$OpenBSD: patch-xlgui___init___py,v 1.3 2017/06/10 14:18:37 giovanni Exp $
Index: xlgui/__init__.py
--- xlgui/__init__.py.orig
+++ xlgui/__init__.py
@@ -326,7 +326,6 @@ class Main(object):
 
         # save open tabs
         self.main.playlist_container.save_current_tabs()
-        gtk.gdk.threads_leave()
 
     @guiutil.idle_add()
     def add_device_panel(self, type, obj, device):
