Skip to content

Commit 01a8990

Browse files
committed
Thoroughly Shutdown The Stack On Non-Interactive Chip Command
When there is a non-interactive CHIP Command, be sure to completely shutdown the stack. In the case where the stack is not completely shutdown, it is impossible to run another CHIP Command from within the same address space.
1 parent 1b7bd1f commit 01a8990

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/chip-tool/commands/common/CHIPCommand.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ void CHIPCommand::MaybeTearDownStack()
225225
{
226226
ShutdownCommissioner(commissioner.first);
227227
}
228+
mCommissioners.clear();
229+
sICDClientStorage.Shutdown();
230+
sCheckInHandler.Shutdown();
231+
sGroupDataProvider.Finish();
232+
DeviceControllerFactory::GetInstance().Shutdown();
228233

229234
StopTracing();
230235
}

0 commit comments

Comments
 (0)