Exit view1090 on connection loss in non-interactive mode

This commit is contained in:
Oliver Jowett 2019-12-02 19:52:43 +08:00
parent a224f6f783
commit ae29613d85
1 changed files with 3 additions and 0 deletions

View File

@ -226,6 +226,9 @@ int main(int argc, char **argv) {
interactiveShowData(); interactiveShowData();
if (s->connections == 0) { if (s->connections == 0) {
if (!Modes.interactive)
break;
// lost input connection, try to reconnect // lost input connection, try to reconnect
interactiveNoConnection(); interactiveNoConnection();
sleep(1); sleep(1);