Fixed Termux build
This commit is contained in:
parent
f92ad4423d
commit
5958490c23
3 changed files with 48 additions and 30 deletions
|
@ -730,7 +730,7 @@ void xmrig::DaemonClient::ZMQRead(ssize_t nread, const uv_buf_t* buf)
|
|||
switch (m_ZMQConnectionState) {
|
||||
case ZMQ_GREETING_1:
|
||||
if (m_ZMQRecvBuf.size() >= kZMQGreetingSize1) {
|
||||
if ((m_ZMQRecvBuf[0] == -1) && (m_ZMQRecvBuf[9] == 127) && (m_ZMQRecvBuf[10] == 3)) {
|
||||
if ((m_ZMQRecvBuf[0] == static_cast<char>(-1)) && (m_ZMQRecvBuf[9] == 127) && (m_ZMQRecvBuf[10] == 3)) {
|
||||
ZMQWrite(kZMQGreeting + kZMQGreetingSize1, sizeof(kZMQGreeting) - kZMQGreetingSize1);
|
||||
m_ZMQConnectionState = ZMQ_GREETING_2;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue