mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-10 20:36:14 +00:00
fix issue#3 - binary receive bug
This commit is contained in:
parent
933426051f
commit
d7f5ceb859
@ -144,7 +144,7 @@ namespace sio
|
|||||||
if (mem_it!=value.MemberEnd() && mem_it->value.GetBool()) {
|
if (mem_it!=value.MemberEnd() && mem_it->value.GetBool()) {
|
||||||
|
|
||||||
int num = value["num"].GetInt();
|
int num = value["num"].GetInt();
|
||||||
if(num > 0 && num < buffers.size())
|
if(num >= 0 && num < buffers.size())
|
||||||
{
|
{
|
||||||
return binary_message::create(buffers[num]);
|
return binary_message::create(buffers[num]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user