Skip to content

Commit

Permalink
Update callback (project-chip#34147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlatusek authored Jul 2, 2024
1 parent fdb71dc commit 005f1b4
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 005f1b4

Please sign in to comment.