ncdirect_stop: drop extraneous ctermfd check

pull/950/head v1.6.17
nick black 4 years ago
parent 026b94969d
commit c2b8610121
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -466,10 +466,8 @@ int ncdirect_stop(ncdirect* nc){
ret = -1;
}
if(nc->ctermfd >= 0){
if(nc->ctermfd >= 0){
if(nc->tcache.cnorm && tty_emit("cnorm", nc->tcache.cnorm, nc->ctermfd)){
ret = -1;
}
if(nc->tcache.cnorm && tty_emit("cnorm", nc->tcache.cnorm, nc->ctermfd)){
ret = -1;
}
ret |= close(nc->ctermfd);
}

Loading…
Cancel
Save