another ssh fix

This commit is contained in:
Andrew Pamment 2016-08-07 12:45:47 +10:00
parent 7b3063ca56
commit c6b92d60e7

7
bbs.c
View File

@ -207,9 +207,10 @@ char s_getchar() {
c = getchar();
} else {
len = read(gSocket, &c, 1);
}
if (len == 0) {
disconnect("Socket Closed");
if (len == 0) {
disconnect("Socket Closed");
}
}
if (!sshBBS) {