mirror of
https://github.com/AxioDL/jbus.git
synced 2025-12-14 07:36:07 +00:00
Add ability to change SI channel and detect disconnections
This commit is contained in:
@@ -57,8 +57,7 @@ void Listener::listenerProc()
|
||||
net::Socket acceptData = {true};
|
||||
net::Socket acceptClock = {true};
|
||||
std::string hostname;
|
||||
u8 chan = 1;
|
||||
while (m_running && chan < 4)
|
||||
while (m_running)
|
||||
{
|
||||
if (m_dataServer.accept(acceptData, hostname) == net::Socket::EResult::OK)
|
||||
{
|
||||
@@ -76,7 +75,7 @@ void Listener::listenerProc()
|
||||
{
|
||||
std::unique_lock<std::mutex> lk(m_queueLock);
|
||||
m_endpointQueue.push(std::make_unique<Endpoint>(
|
||||
chan++, std::move(acceptData), std::move(acceptClock)));
|
||||
0, std::move(acceptData), std::move(acceptClock)));
|
||||
}
|
||||
WaitGCTicks(GetGCTicksPerSec());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user