We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50e115d commit de6dd81Copy full SHA for de6dd81
src/lib/shell/MainLoopMW320.cpp
@@ -16,7 +16,6 @@
16
*/
17
18
#include "streamer.h"
19
-#include <app/server/Server.h>
20
#include <lib/shell/Engine.h>
21
#include <platform/CHIPDeviceLayer.h>
22
#include <platform/CommissionableDataProvider.h>
@@ -161,7 +160,7 @@ static void AtExitShell(void);
161
160
static CHIP_ERROR ShutdownHandler(int argc, char ** argv)
162
{
163
streamer_printf(streamer_get(), "Shutdown and Goodbye\r\n");
164
- Server::GetInstance().GenerateShutDownEvent();
+ DeviceLayer::PlatformMgr().ScheduleWork([](intptr_t) { DeviceLayer::PlatformMgr().HandleServerShuttingDown(); });
165
// TODO: This is assuming that we did (on a different thread from this one)
166
// RunEventLoop(), not StartEventLoopTask(). It will not work correctly
167
// with StartEventLoopTask().
0 commit comments