mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-16 17:51:42 +02: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:
parent
3d6551f708
commit
ddb2d7feeb
10 changed files with 44 additions and 38 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue