Skip to content

Commit

Permalink
Update callback (#34147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlatusek authored and pull[bot] committed Sep 24, 2024
1 parent 012d208 commit 165dff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/tests/TestCHIPCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ TEST_F(TestCHIPCallback, NotifierTest)
{
int n = 1;
Callback<Notifier::NotifyFn> cb(reinterpret_cast<Notifier::NotifyFn>(increment_by), &n);
Callback<Notifier::NotifyFn> cancelcb(reinterpret_cast<Notifier::NotifyFn>(canceler), cb.Cancel());
Callback<Notifier::NotifyFn> cancelcb([](void * call, int) { canceler(reinterpret_cast<Cancelable *>(call)); }, cb.Cancel());

// safe to call anytime
cb.Cancel();
Expand Down

0 comments on commit 165dff9

Please sign in to comment.