From 5fc579ad5ac069337de1c6a94c625a2a4281caf3 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 12 Sep 2011 21:15:09 +0000 Subject: [PATCH] Delete the BasicSocketCommandServer task if the task exits, which can happen if the listening socket cannot be created. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1596 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../apps/BasicSocketCommandServer/BasicSocketCommandServer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Demo/WIN32-MSVC-lwIP/lwIP_Apps/apps/BasicSocketCommandServer/BasicSocketCommandServer.c b/Demo/WIN32-MSVC-lwIP/lwIP_Apps/apps/BasicSocketCommandServer/BasicSocketCommandServer.c index 6fd3cc114..2a85735b9 100644 --- a/Demo/WIN32-MSVC-lwIP/lwIP_Apps/apps/BasicSocketCommandServer/BasicSocketCommandServer.c +++ b/Demo/WIN32-MSVC-lwIP/lwIP_Apps/apps/BasicSocketCommandServer/BasicSocketCommandServer.c @@ -189,5 +189,8 @@ portBASE_TYPE xReturned; } } } + + /* Will only get here if a listening socket could not be created. */ + vTaskDelete( NULL ); } -- 2.39.5