If monitor has been deleted, we won't be able to connect to it. Show an instructive jpeg and exit.
parent
6a258dff22
commit
8676da6ead
|
@ -462,6 +462,8 @@ void MonitorStream::runStream() {
|
||||||
if (!checkInitialised()) {
|
if (!checkInitialised()) {
|
||||||
if (!loadMonitor(monitor_id)) {
|
if (!loadMonitor(monitor_id)) {
|
||||||
sendTextFrame("Not connected");
|
sendTextFrame("Not connected");
|
||||||
|
} else if (monitor->Deleted()) {
|
||||||
|
sendTextFrame("Monitor has been deleted");
|
||||||
} else if (monitor->Capturing() == Monitor::CAPTURING_ONDEMAND) {
|
} else if (monitor->Capturing() == Monitor::CAPTURING_ONDEMAND) {
|
||||||
sendTextFrame("Waiting for capture");
|
sendTextFrame("Waiting for capture");
|
||||||
} else {
|
} else {
|
||||||
|
@ -567,6 +569,10 @@ void MonitorStream::runStream() {
|
||||||
Debug(1, "Failed Send not connected");
|
Debug(1, "Failed Send not connected");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
} else if (monitor->Deleted()) {
|
||||||
|
sendTextFrame("Monitor has been deleted");
|
||||||
|
zm_terminate = true;
|
||||||
|
continue;
|
||||||
} else if (monitor->Capturing() == Monitor::CAPTURING_ONDEMAND) {
|
} else if (monitor->Capturing() == Monitor::CAPTURING_ONDEMAND) {
|
||||||
if (!sendTextFrame("Waiting for capture")) return;
|
if (!sendTextFrame("Waiting for capture")) return;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue