Skip to content

Commit

Permalink
Mutex lock correction!
Browse files Browse the repository at this point in the history
  • Loading branch information
Milton Maldonado Jr committed May 23, 2020
1 parent 0137cca commit 928fb4c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,10 +1152,7 @@ int board_run(board_ctx_t *ctx, event_context_t *ec, board_object *board){
if (p->key == key){

bitswitch *bs = p->objptr;
event_mutex_lock(bs->ec);
bitswitch_setval(bs, 1 ^ bs->value);
event_mutex_unlock(bs->ec);

board_set_refresh(ctx);
}
}
Expand Down

0 comments on commit 928fb4c

Please sign in to comment.