Skip to content

Commit

Permalink
Lock more than less
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Apr 14, 2019
1 parent 8995727 commit cc88ed7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ void resolveClients(bool onlynew)
}

// Mark entry as not new
lock_shm();
clients[clientID].new = false;
unlock_shm();
}
}

Expand Down Expand Up @@ -157,7 +159,9 @@ void resolveForwardDestinations(bool onlynew)
}

// Mark entry as not new
lock_shm();
forwarded[forwardID].new = false;
unlock_shm();
}
}

Expand Down

0 comments on commit cc88ed7

Please sign in to comment.