Skip to content

Commit

Permalink
Fixes deletion order in CC32xx socket shutdown. (#442)
Browse files Browse the repository at this point in the history
This change ensures that threads higher priority than the closing call
have a chance to exit their kernel processing before the socket object
gets deleted.

This makes #440 slightly better.
  • Loading branch information
balazsracz authored Oct 8, 2020
1 parent b715b9b commit 83a76c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freertos_drivers/net_cc32xx/CC32xxSocket.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,8 @@ int CC32xxSocket::close(File *file)
portENTER_CRITICAL();
remove_instance_from_sd(sd);
portEXIT_CRITICAL();
delete this;
sl_Close(sd);
delete this;
}
else
{
Expand Down

0 comments on commit 83a76c3

Please sign in to comment.