Exit view1090 on connection loss in non-interactive mode
This commit is contained in:
parent
a224f6f783
commit
ae29613d85
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue