mirror of https://github.com/AxioDL/jbus.git
Remove unnecessary setBlocking calls
This commit is contained in:
parent
e65f42c843
commit
e161ef15fa
|
@ -418,7 +418,6 @@ void Endpoint::clockSync()
|
||||||
TickDelta = u32(u64(TickDelta) * 16777216 / GetGCTicksPerSec());
|
TickDelta = u32(u64(TickDelta) * 16777216 / GetGCTicksPerSec());
|
||||||
m_lastGCTick = GetGCTicks();
|
m_lastGCTick = GetGCTicks();
|
||||||
TickDelta = SBig(TickDelta);
|
TickDelta = SBig(TickDelta);
|
||||||
m_clockSocket.setBlocking(false);
|
|
||||||
if (m_clockSocket.send(&TickDelta, 4) == net::Socket::EResult::Error)
|
if (m_clockSocket.send(&TickDelta, 4) == net::Socket::EResult::Error)
|
||||||
m_running = false;
|
m_running = false;
|
||||||
}
|
}
|
||||||
|
@ -429,7 +428,6 @@ void Endpoint::send(const u8* buffer)
|
||||||
|
|
||||||
net::Socket::EResult result;
|
net::Socket::EResult result;
|
||||||
size_t sentBytes;
|
size_t sentBytes;
|
||||||
m_dataSocket.setBlocking(false);
|
|
||||||
if (m_lastCmd == CMD_WRITE)
|
if (m_lastCmd == CMD_WRITE)
|
||||||
result = m_dataSocket.send(buffer, 5, sentBytes);
|
result = m_dataSocket.send(buffer, 5, sentBytes);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue