]> granicus.if.org Git - esp-idf/commitdiff
fix the crash when http2_request example send/recv fail
authorzhangyanjiao <zhangyanjiao@espressif.com>
Thu, 2 Aug 2018 05:11:50 +0000 (13:11 +0800)
committerbot <bot@espressif.com>
Mon, 6 Aug 2018 11:39:01 +0000 (11:39 +0000)
examples/protocols/http2_request/main/http2_request_example_main.c

index 7725294d4287dc3f7b66446ad29d05d9d656a97d..cdcc6ec977f2717b9f1e7d14d5230ed4517ddc59 100644 (file)
@@ -145,6 +145,7 @@ static void http2_task(void *args)
     }
 
     sh2lib_free(&hd);
+    vTaskDelete(NULL);
 }
 
 static esp_err_t event_handler(void *ctx, system_event_t *event)