Removed ifdeffed out code

v0.9.0
Jeroen Domburg 10 years ago
parent 5fb984e13b
commit 6aa3cdedc1
  1. 9
      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) { 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. //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. //That is why we can't use (HttpdConnData)arg->sock here.
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
//Just look at all the sockets and kill the slot if needed. //Just look at all the sockets and kill the slot if needed.
int i; int i;
for (i=0; i<MAX_CONN; i++) { for (i=0; i<MAX_CONN; i++) {

Loading…
Cancel
Save