mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-08 23:59:02 -05:00
[input] always unlock on pthread_cond_wait() error #2837
This commit is contained in:
parent
73e834438f
commit
333455e792
@ -2709,12 +2709,11 @@ internal_get(inputctx* ictx, const struct timespec* ts, ncinput* ni){
|
||||
if(r){
|
||||
pthread_mutex_unlock(&ictx->ilock);
|
||||
if(r == ETIMEDOUT){
|
||||
pthread_mutex_unlock(&ictx->ilock);
|
||||
if(ni){
|
||||
memset(ni, 0, sizeof(*ni));
|
||||
}
|
||||
return 0;
|
||||
}else if(r < 0){
|
||||
}else{
|
||||
inc_input_errors(ictx);
|
||||
if(ni){
|
||||
memset(ni, 0, sizeof(*ni));
|
||||
|
Loading…
x
Reference in New Issue
Block a user