Skip to content

Commit de6dd81

Browse files
committed
[mw320] Remove shell dependency on app/server
Use PlatformMgr directly. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@gmail.com>
1 parent 50e115d commit de6dd81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/shell/MainLoopMW320.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
#include "streamer.h"
19-
#include <app/server/Server.h>
2019
#include <lib/shell/Engine.h>
2120
#include <platform/CHIPDeviceLayer.h>
2221
#include <platform/CommissionableDataProvider.h>
@@ -161,7 +160,7 @@ static void AtExitShell(void);
161160
static CHIP_ERROR ShutdownHandler(int argc, char ** argv)
162161
{
163162
streamer_printf(streamer_get(), "Shutdown and Goodbye\r\n");
164-
Server::GetInstance().GenerateShutDownEvent();
163+
DeviceLayer::PlatformMgr().ScheduleWork([](intptr_t) { DeviceLayer::PlatformMgr().HandleServerShuttingDown(); });
165164
// TODO: This is assuming that we did (on a different thread from this one)
166165
// RunEventLoop(), not StartEventLoopTask(). It will not work correctly
167166
// with StartEventLoopTask().

0 commit comments

Comments
 (0)