Commit 13e88b2a authored by Ian Craggs's avatar Ian Craggs

Merge branch 'fixes' into develop

parents e4067dc3 5f3edcbc
......@@ -15,6 +15,7 @@
* Ian Craggs - async client updates
* Ian Craggs - fix for bug 484496
* Juergen Kosel, Ian Craggs - fix for issue #135
* Ian Craggs - issue #217
*******************************************************************************/
/**
......@@ -751,7 +752,7 @@ int Socket_continueWrite(int socket)
add some of the buffer */
size_t offset = pw->bytes - curbuflen;
iovecs1[++curbuf].iov_len = pw->iovecs[i].iov_len - (ULONG)offset;
iovecs1[curbuf].iov_base = pw->iovecs[i].iov_base + offset;
iovecs1[curbuf].iov_base = (char*)pw->iovecs[i].iov_base + offset;
break;
}
curbuflen += pw->iovecs[i].iov_len;
......
......@@ -88,6 +88,7 @@ int main(int argc, char* argv[])
ch = getchar();
} while(ch!='Q' && ch != 'q');
MQTTClient_unsubscribe(client, TOPIC);
MQTTClient_disconnect(client, 10000);
MQTTClient_destroy(&client);
return rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment