Skip to content

Commit 7e4a5d6

Browse files
restyled-commitssabollim-silabs
authored andcommitted
Restyled by clang-format
1 parent 7905f76 commit 7e4a5d6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/inet/UDPEndPointImplLwIP.cpp

100755100644
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ void UDPEndPointImplLwIP::CloseImpl()
223223
Ref();
224224
// Capture the instance ID to validate this is still the same endpoint instance
225225
uint32_t expectedInstanceId = mInstanceId.load();
226-
CHIP_ERROR err = GetSystemLayer().ScheduleLambda([this, expectedInstanceId] {
227-
226+
CHIP_ERROR err = GetSystemLayer().ScheduleLambda([this, expectedInstanceId] {
228227
// Verify this is still the same endpoint instance by checking the instance ID
229228
if (mInstanceId.load() != expectedInstanceId)
230229
{
@@ -393,9 +392,8 @@ void UDPEndPointImplLwIP::LwIPReceiveUDPMessage(void * arg, struct udp_pcb * pcb
393392

394393
// Capture the instance ID to validate this is still the same endpoint instance
395394
uint32_t expectedInstanceId = ep->mInstanceId.load();
396-
CHIP_ERROR err = ep->GetSystemLayer().ScheduleLambda(
395+
CHIP_ERROR err = ep->GetSystemLayer().ScheduleLambda(
397396
[ep, pcb, expectedInstanceId, p = System::LwIPPacketBufferView::UnsafeGetLwIPpbuf(buf), pktInfo = pktInfo.get()] {
398-
399397
// Critical check: Verify this lambda is for the correct endpoint instance
400398
// by comparing the instance ID. If they don't match, the endpoint was
401399
// deleted and recreated at the same memory address.

0 commit comments

Comments
 (0)