minor improvements (#66)

* minor improvements

* fix build

* improve tests code
This commit is contained in:
Dimon4eg
2019-05-11 22:20:58 +03:00
committed by Benjamin Sergeant
parent 4934f5846b
commit 2254421ead
8 changed files with 21 additions and 30 deletions

View File

@ -719,7 +719,7 @@ namespace ix
bool compress,
const OnProgressCallback& onProgressCallback)
{
if (_readyState == CLOSING || _readyState == CLOSED)
if (_readyState != OPEN)
{
return WebSocketSendInfo();
}