Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Fix bug in listen function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lindros committed Jan 26, 2015
1 parent d482446 commit fff759f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions WebSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ void WebSocket::begin() {
}

void WebSocket::listen() {

client = server.available();

if (client == true) {
if (server.available()) {
// No active connection available. Treat this as a handshake request.
if (state == DISCONNECTED) {
bool handshakeSuccessful = processHandshake();
Expand Down

0 comments on commit fff759f

Please sign in to comment.