mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-27 05:18:34 +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
|
@ -760,15 +760,6 @@ CServerApp::mainLoop()
|
|||
|
||||
// create the event queue
|
||||
CEventQueue eventQueue;
|
||||
/*
|
||||
bool a = true;
|
||||
while (a) {
|
||||
ARCH->sleep(1);
|
||||
}*/
|
||||
|
||||
if (argsBase().m_enableIpc) {
|
||||
initIpcClient();
|
||||
}
|
||||
|
||||
// if configuration has no screens then add this system
|
||||
// as the default
|
||||
|
@ -795,6 +786,12 @@ CServerApp::mainLoop()
|
|||
|
||||
// start server, etc
|
||||
appUtil().startNode();
|
||||
|
||||
// init ipc client after node start, since create a new screen wipes out
|
||||
// the event queue (the screen ctors call adoptBuffer).
|
||||
if (argsBase().m_enableIpc) {
|
||||
initIpcClient();
|
||||
}
|
||||
|
||||
// load all available plugins.
|
||||
ARCH->plugin().init(s_serverScreen->getEventTarget());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue