micro synergy patch by Bruce Oberg
This commit is contained in:
parent
72cbcd70c0
commit
77b92b7b6f
|
@ -479,7 +479,7 @@ static void sUpdateContext(uSynergyContext *context)
|
||||||
int receive_size = USYNERGY_RECEIVE_BUFFER_SIZE - context->m_receiveOfs;
|
int receive_size = USYNERGY_RECEIVE_BUFFER_SIZE - context->m_receiveOfs;
|
||||||
int num_received = 0;
|
int num_received = 0;
|
||||||
int packlen = 0;
|
int packlen = 0;
|
||||||
if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer, receive_size, &num_received) == USYNERGY_FALSE)
|
if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer + context->m_receiveOfs, receive_size, &num_received) == USYNERGY_FALSE)
|
||||||
{
|
{
|
||||||
/* Receive failed, let's try to reconnect */
|
/* Receive failed, let's try to reconnect */
|
||||||
char buffer[128];
|
char buffer[128];
|
||||||
|
|
Loading…
Reference in New Issue