Skip to content

Commit

Permalink
Debounce vector cache lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fundamental committed Jun 24, 2021
1 parent b250436 commit 26ec3c8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/osc-bridge/src/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,13 @@ static int cache_set_vector(bridge_t *br, uri_t uri, char *types, rtosc_arg_t *a
line->requests = 0;

//check if cache line is currently debounced...
//int debounced = false;
//for(int i=0; i<br->debounce_len; ++i)
// if(!strcmp(br->bounce[i].path, line->path))
// debounced = true;
int debounced = false;
for(int i=0; i<br->debounce_len; ++i) {
if(!strcmp(br->bounce[i].path, line->path))
debounced = true;
}

//if(!debounced)
if(!debounced)
run_callbacks(br, line);

return true;
Expand Down

0 comments on commit 26ec3c8

Please sign in to comment.