From a2a04edcf7a3e10e7e34ffb8972d3743ff2ccb00 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 7 Jan 2022 16:31:45 -0500 Subject: [PATCH] Only init gsoap if we are capturing --- src/zm_monitor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 04e3d8604..8bb5b2a29 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1070,10 +1070,6 @@ bool Monitor::connect() { video_store_data->size = sizeof(VideoStoreData); usedsubpixorder = camera->SubpixelOrder(); // Used in CheckSignal shared_data->valid = true; - } else if (!shared_data->valid) { - Error("Shared data not initialised by capture daemon for monitor %s", name.c_str()); - return false; - } //ONVIF Setup #ifdef WITH_GSOAP @@ -1110,6 +1106,10 @@ bool Monitor::connect() { } //End ONVIF Setup #endif + } else if (!shared_data->valid) { + Error("Shared data not initialised by capture daemon for monitor %s", name.c_str()); + return false; + } // We set these here because otherwise the first fps calc is meaningless last_fps_time = std::chrono::system_clock::now();