mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-02 09:56:52 +08:00
fixed: ipc client connected event was being wiped out
daemon now communicates graceful shutdown message through new ipc system.
This commit is contained in:
@@ -121,6 +121,14 @@ CEventQueue::adoptBuffer(IEventQueueBuffer* buffer)
|
||||
{
|
||||
CArchMutexLock lock(m_mutex);
|
||||
|
||||
LOG((CLOG_DEBUG "adopting new buffer"));
|
||||
|
||||
if (m_events.size() != 0) {
|
||||
// this can come as a nasty surprise to programmers expecting
|
||||
// their events to be raised, only to have them deleted.
|
||||
LOG((CLOG_WARN "discarding %d event(s), sorry", m_events.size()));
|
||||
}
|
||||
|
||||
// discard old buffer and old events
|
||||
delete m_buffer;
|
||||
for (CEventTable::iterator i = m_events.begin(); i != m_events.end(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user