minor test fix

This commit is contained in:
Alex Fabijanic 2018-04-27 20:15:53 -05:00 committed by Alex Fabijanic
parent cca65d34a0
commit f6e6bec32d

View File

@ -123,8 +123,8 @@ namespace
_str.write(buffer, n);
_data += _str.str();
_str.str("");
if ((_once && _data.size() >= 1024) ||
(!_once && _data.size() >= 4096))
if ((_once && _data.size() == 1024) ||
(!_once && _data.size() == 4096))
{
_reactor.stop();
delete this;