From 370a899876e258639227281cffa1cf9f8189eb96 Mon Sep 17 00:00:00 2001 From: Pasquale Boemio Date: Mon, 29 Apr 2013 17:28:40 +0200 Subject: [PATCH] removed vexatious line --- easywsclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easywsclient.cpp b/easywsclient.cpp index 22df14b..3cb3e41 100644 --- a/easywsclient.cpp +++ b/easywsclient.cpp @@ -107,7 +107,7 @@ struct _RealWebSocket : public WebSocket std::vector txbuf; int sockfd; - /* I suppose we should add the other websocket status. + /* I suppose we should add the others websocket status. * Right now only this two are used, so, to avoid problems, * I've added a dummy status that includes all the non "closing" ones */ enum clientStatusValues { CLOSING, CLOSE, DUMMYSTATUS } clientStatus; @@ -224,7 +224,7 @@ struct _RealWebSocket : public WebSocket void send(std::string message) { // TODO: consider acquiring a lock on txbuf... - if(clientStatus==CLOSING || clientStatus==CLOSE) { fprintf(stderr, "closing"); return; } + if(clientStatus==CLOSING || clientStatus==CLOSE) { return; } std::vector header; header.assign(2 + (message.size() >= 126 ? 2 : 0) + (message.size() >= 65536 ? 6 : 0), 0); header[0] = 0x80 | wsheader_type::TEXT_FRAME;