mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-18 17:56:52 +01:00
BugFix: stop Process mechanism of ProcessFramework.
Update: DISCONNECT procedure for NonActive clients. Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -115,6 +115,7 @@ void TestProcessFramework::run(void)
|
||||
printf("%s Timer 1sec\n", currentDateTime());
|
||||
|
||||
MultiTaskProcess::run();
|
||||
|
||||
printf("ProcessFramework test complited.\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -39,9 +39,10 @@ void TestTask::run(void)
|
||||
{
|
||||
while(true)
|
||||
{
|
||||
if (theProcess->checkSignal() == SIGINT)
|
||||
if ( CHK_SIGINT)
|
||||
{
|
||||
throw Exception("Terminated by CTL-C");
|
||||
printf("Task stopped.\n");
|
||||
return;
|
||||
}
|
||||
printf("Task is running. Enter CTRL+C\n");
|
||||
sleep(1);
|
||||
|
||||
Reference in New Issue
Block a user