Skip to content
Snippets Groups Projects
Commit e03caede authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3045] Init the gobject thread before starting glib Mainloop in test suite

parent 7cc106b6
Branches
No related tags found
No related merge requests found
...@@ -66,6 +66,7 @@ class SflPhoneCtrlSimple(Thread): ...@@ -66,6 +66,7 @@ class SflPhoneCtrlSimple(Thread):
self.registered = False self.registered = False
self.register() self.register()
self.currentCallId = "" self.currentCallId = ""
self.loop = MainLoop() self.loop = MainLoop()
self.test = test self.test = test
...@@ -603,4 +604,9 @@ class SflPhoneCtrlSimple(Thread): ...@@ -603,4 +604,9 @@ class SflPhoneCtrlSimple(Thread):
return callid return callid
def run(self): def run(self):
self.loop.run() gobject.threads_init()
# self.loop.run()
context = self.loop.get_context()
while 1:
context.iteration(True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment