Fix memleak caused by loadMonitor that is already loaded
This commit is contained in:
parent
7e579fd851
commit
e373e871da
|
@ -485,11 +485,12 @@ void MonitorStream::runStream() {
|
|||
if (connkey)
|
||||
checkCommandQueue();
|
||||
|
||||
if (!loadMonitor(monitor_id)) {
|
||||
sendTextFrame("Not connected");
|
||||
sleep(1);
|
||||
} else if (!checkInitialised()) {
|
||||
sendTextFrame("Unable to stream");
|
||||
if (!checkInitialised()) {
|
||||
if (!loadMonitor(monitor_id)) {
|
||||
sendTextFrame("Not connected");
|
||||
} else {
|
||||
sendTextFrame("Unable to stream");
|
||||
}
|
||||
sleep(1);
|
||||
} else {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue