notcurses-input: join ticker thread on exit

pull/469/head
nick black 5 years ago
parent b04a37c433
commit f08bbf83a7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -246,6 +246,8 @@ int main(void){
}
if((r == 'D' || r == 'd') && ni.ctrl){
done = true;
tid.join();
return EXIT_SUCCESS;
}
if(!n->cursor_move(y, 0)){
@ -305,5 +307,7 @@ int main(void){
if(r == (char32_t)-1 && e){
std::cerr << "Error reading from terminal (" << strerror(e) << "?)\n";
}
done = true;
tid.join();
return EXIT_FAILURE;
}

Loading…
Cancel
Save