summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Hrázký <lhrazky@redhat.com>2018-06-25 15:06:50 +0200
committerLukáš Hrázký <lhrazky@redhat.com>2018-07-02 12:21:24 +0200
commit7cb2c4fb6d1640eb600601e555ec61166bc0d7f9 (patch)
treea9d57bdedc3c2d22ab49b76e9727953e88e237f1
parent8fb16195dca782b4aa5faa82951f734caf31bffe (diff)
Move register_interrupts() before the try-catch block
It doesn't throw and is part of the main() setup, not the business code. Signed-off-by: Lukáš Hrázký <lhrazky@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--src/spice-streaming-agent.cpp4
1 files 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) {