about summary refs log tree commit diff stats
path: root/termbox/termbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'termbox/termbox.c')
-rw-r--r--termbox/termbox.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/termbox/termbox.c b/termbox/termbox.c
index 13ef1359..2fbbf5b4 100644
--- a/termbox/termbox.c
+++ b/termbox/termbox.c
@@ -130,10 +130,7 @@ int tb_init(void)
 
 void tb_shutdown(void)
 {
-  if (termw == -1) {
-    fputs("tb_shutdown() should not be called twice.", stderr);
-    abort();
-  }
+  if (termw == -1) return;
 
   bytebuffer_puts(&output_buffer, funcs[T_SHOW_CURSOR]);
   bytebuffer_puts(&output_buffer, funcs[T_SGR0]);