Skip to content
Snippets Groups Projects
Commit 41260229 authored by deuce's avatar deuce
Browse files

Don't close the port until after the threads terminate

input_thread will still toggle DTR.
parent 6abe0526
No related branches found
No related tags found
No related merge requests found
......@@ -295,10 +295,10 @@ int modem_connect(struct bbslist *bbs)
int serial_close(void)
{
conn_api.terminate=1;
comClose(com);
while(conn_api.input_thread_running || conn_api.output_thread_running)
SLEEP(1);
comClose(com);
destroy_conn_buf(&conn_inbuf);
destroy_conn_buf(&conn_outbuf);
FREE_AND_NULL(conn_api.rd_buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment