mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 12:53:53 +08:00
fixed handling of calling init() when a previous process did not
call cleanup(). if that process still appears to exist then the init() fails. otherwise some cleanup is performed and the init() proceeds. a synergy server started while another is running will now exit immediately without interfering the original server.
This commit is contained in:
@@ -398,7 +398,9 @@ CMSWindowsPrimaryScreen::onPreOpen()
|
||||
|
||||
// initialize hook library
|
||||
m_threadID = GetCurrentThreadId();
|
||||
m_init(m_threadID);
|
||||
if (m_init(m_threadID) == 0) {
|
||||
throw XScreenOpenFailure();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user