vere: fixes driver exit in u3_pier_bail()

This commit is contained in:
Joe Bryan 2020-07-21 14:09:47 -07:00
parent c184752f8d
commit 69eeb6309e

View File

@ -1666,7 +1666,9 @@ u3_pier_bail(u3_pier* pir_u)
// exig i/o drivers
//
if ( pir_u->wok_u ) {
if ( (u3_psat_work == pir_u->sat_e)
&& pir_u->wok_u )
{
_pier_work_close(pir_u->wok_u);
pir_u->wok_u = 0;
}