From 6aa3cdedc1a9b05c429e355afb12786442996db8 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Fri, 3 Apr 2015 11:32:51 +0200 Subject: [PATCH] Removed ifdeffed out code --- user/httpd.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/user/httpd.c b/user/httpd.c index 2039945..0843a78 100644 --- a/user/httpd.c +++ b/user/httpd.c @@ -451,15 +451,8 @@ static void ICACHE_FLASH_ATTR httpdReconCb(void *arg, sint8 err) { } static void ICACHE_FLASH_ATTR httpdDisconCb(void *arg) { -#if 0 //The esp sdk passes through wrong arg here, namely the one of the *listening* socket. - //If it ever gets fixed, be sure to update the code in this snippet; it's probably out-of-date. - HttpdConnData *conn=httpdFindConnData(arg); - os_printf("Disconnected, conn=%p\n", conn); - if (conn==NULL) return; - conn->conn=NULL; - if (conn->cgi!=NULL) conn->cgi(conn); //flush cgi data -#endif + //That is why we can't use (HttpdConnData)arg->sock here. //Just look at all the sockets and kill the slot if needed. int i; for (i=0; i