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());
|
||||
m_lastGCTick = GetGCTicks();
|
||||
TickDelta = SBig(TickDelta);
|
||||
m_clockSocket.setBlocking(false);
|
||||
if (m_clockSocket.send(&TickDelta, 4) == net::Socket::EResult::Error)
|
||||
m_running = false;
|
||||
}
|
||||
|
@ -429,7 +428,6 @@ void Endpoint::send(const u8* buffer)
|
|||
|
||||
net::Socket::EResult result;
|
||||
size_t sentBytes;
|
||||
m_dataSocket.setBlocking(false);
|
||||
if (m_lastCmd == CMD_WRITE)
|
||||
result = m_dataSocket.send(buffer, 5, sentBytes);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue