From cc85e55d88e5b2f49e4f059b87650b1d808409c3 Mon Sep 17 00:00:00 2001
From: Kevin Harwell <kharwell@digium.com>
Date: Wed, 11 Feb 2015 17:45:00 +0000
Subject: [PATCH] ari_websockets: removed extra check on websocket session read

When merging the websocket timeout issue (ASTERISK-24701) an extra, almost
duplicate, check was left in the code that should not have been. This removes
it.

ASTERISK-24701 #close
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/4412/
........

Merged revisions 431693 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 res/ari/ari_websockets.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/res/ari/ari_websockets.c b/res/ari/ari_websockets.c
index 683f00e19e..f3b764bf15 100644
--- a/res/ari/ari_websockets.c
+++ b/res/ari/ari_websockets.c
@@ -104,12 +104,6 @@ struct ast_json *ast_ari_websocket_session_read(
 		return NULL;
 	}
 
-
-	if (ast_websocket_fd(session->ws_session) <= 0) {
-		return NULL;
-	}
-
-
 	while (!message) {
 		int res;
 		char *payload;
-- 
GitLab