Small improvement to http client (#1558)

This commit is contained in:
Philip Gladstone 2016-10-27 07:07:04 -04:00 committed by Marcel Stör
parent ebb537c502
commit 2227383843
1 changed files with 7 additions and 7 deletions

View File

@ -412,13 +412,6 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
}
static void ICACHE_FLASH_ATTR http_error_callback( void *arg, sint8 errType )
{
HTTPCLIENT_DEBUG( "Disconnected with error\n" );
http_disconnect_callback( arg );
}
static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
{
HTTPCLIENT_DEBUG( "Connection timeout\n" );
@ -440,6 +433,13 @@ static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
}
static void ICACHE_FLASH_ATTR http_error_callback( void *arg, sint8 errType )
{
HTTPCLIENT_DEBUG( "Disconnected with error: %d\n", errType );
http_timeout_callback( arg );
}
static void ICACHE_FLASH_ATTR http_dns_callback( const char * hostname, ip_addr_t * addr, void * arg )
{
request_args_t * req = (request_args_t *) arg;