Skip to content

Commit

Permalink
bg thread is already started above
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Jun 21, 2023
1 parent 6030c1d commit 2abd44c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/platform/esp32/common/CHIPDeviceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
ReturnErrorOnFailure(PlatformMgr().StartBackgroundEventLoopTask());

// Start a task to run the CHIP Device event loop.
ReturnErrorOnFailure(PlatformMgr().StartEventLoopTask());

// This is a no op if CONFIG_ENABLE_BG_EVENT_PROCESSING is disabled
return PlatformMgr().StartBackgroundEventLoopTask();
return PlatformMgr().StartEventLoopTask();
}
} // namespace DeviceManager
} // namespace chip
Expand Down

0 comments on commit 2abd44c

Please sign in to comment.