From 69eeb6309efdeea8c56d06e600aebd0044255244 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 21 Jul 2020 14:09:47 -0700 Subject: [PATCH] vere: fixes driver exit in u3_pier_bail() --- pkg/urbit/vere/pier.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/urbit/vere/pier.c b/pkg/urbit/vere/pier.c index ec7668990..fb2c220a9 100644 --- a/pkg/urbit/vere/pier.c +++ b/pkg/urbit/vere/pier.c @@ -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; }