use g_main_context_invoke instead of timeout
This commit is contained in:
parent
9b97425c18
commit
2e77a02291
1 changed files with 2 additions and 1 deletions
|
@ -100,5 +100,6 @@ void SpectrumEventLoop::post(const Event& event) {
|
|||
// pass copy of event to main thread
|
||||
Event *ev = new Event(event);
|
||||
LOG4CXX_INFO(logger, "posting event to main thread " << ev);
|
||||
purple_timeout_add(0, processEvent, ev);
|
||||
g_main_context_invoke(g_main_loop_get_context(m_loop), processEvent, ev);
|
||||
// purple_timeout_add(0, processEvent, ev);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue