From f7c52aa39f7c2edcfaa4eb501d1afd6bced16c1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sun, 5 Jan 2025 17:09:40 -0500
Subject: [PATCH] Reset terminate to false during connect()

Fixes bug where you could only open a Shell session on Windows once
per invocation of SyncTERM.
---
 src/syncterm/conn_conpty.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/syncterm/conn_conpty.c b/src/syncterm/conn_conpty.c
index 875a3424d2..ada7a910f7 100644
--- a/src/syncterm/conn_conpty.c
+++ b/src/syncterm/conn_conpty.c
@@ -216,6 +216,7 @@ int conpty_connect(struct bbslist *bbs)
 	}
 	conn_api.wr_buf_size = BUFFER_SIZE;
 
+	terminate = false;
 	_beginthread(conpty_output_thread, 0, NULL);
 	_beginthread(conpty_input_thread, 0, NULL);
 
-- 
GitLab