[Spice-devel] [PATCH spice-streaming-agent v3 4/6] Move register_interrupts() before the try-catch block

Lukáš Hrázký lhrazky at redhat.com
Mon Jul 2 08:43:37 UTC 2018


It doesn't throw and is part of the main() setup, not the business code.

Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>
---
 src/spice-streaming-agent.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index 4eb6f25..2ee45e2 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -459,14 +459,14 @@ int main(int argc, char* argv[])
         }
     }
 
+    register_interrupts();
+
     try {
         // register built-in plugins
         MjpegPlugin::Register(&agent);
 
         agent.LoadPlugins(pluginsdir);
 
-        register_interrupts();
-
         FrameLog frame_log(log_filename, log_binary, log_frames);
 
         for (const std::string& arg: old_args) {
-- 
2.17.1



More information about the Spice-devel mailing list