From 2ae99f32f63140be2440870c3380529b301145fb Mon Sep 17 00:00:00 2001 From: Richard Barry 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. --- .../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 ); }