Skip to content
Snippets Groups Projects
Commit fbaf3bec authored by Dicson's avatar Dicson
Browse files

fix threads problem in OpenBSD. Fixes #7154

parent 4f7cdd55
No related branches found
No related tags found
No related merge requests found
......@@ -454,6 +454,9 @@ if __name__ == '__main__':
# This makes Gajim unusable under windows, and threads are used only
# for GPG, so not under windows
gtk.gdk.threads_init()
gtk.gdk.threads_enter()
gtk.main()
if os.name != 'nt':
gtk.gdk.threads_leave()
except KeyboardInterrupt:
print >> sys.stderr, 'KeyboardInterrupt'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment