fixed Mac server keeps crashing during launch
This commit is contained in:
parent
4816a30db3
commit
95ece5ac2c
|
@ -31,7 +31,9 @@ class CEventQueueTimer { };
|
||||||
//
|
//
|
||||||
|
|
||||||
COSXEventQueueBuffer::COSXEventQueueBuffer(IEventQueue* events) :
|
COSXEventQueueBuffer::COSXEventQueueBuffer(IEventQueue* events) :
|
||||||
m_eventQueue(events), m_event(NULL)
|
m_eventQueue(events),
|
||||||
|
m_event(NULL),
|
||||||
|
m_threadEventQueueRef(NULL)
|
||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
@ -98,7 +100,7 @@ COSXEventQueueBuffer::addEvent(UInt32 dataID)
|
||||||
kEventAttributeNone,
|
kEventAttributeNone,
|
||||||
&event);
|
&event);
|
||||||
|
|
||||||
if (error == noErr) {
|
if (error == noErr & m_threadEventQueueRef != NULL) {
|
||||||
error = PostEventToQueue(m_threadEventQueueRef, event,
|
error = PostEventToQueue(m_threadEventQueueRef, event,
|
||||||
kEventPriorityStandard);
|
kEventPriorityStandard);
|
||||||
ReleaseEvent(event);
|
ReleaseEvent(event);
|
||||||
|
|
Loading…
Reference in New Issue