From 1b82580146bd8ad19271025bdb82014d741d2675 Mon Sep 17 00:00:00 2001 From: Marcus Rockwell Date: Wed, 11 Sep 2024 11:11:51 -0500 Subject: [PATCH] Fixed return values --- .../sim_services/VariableServer/VariableServerListenThread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trick_source/sim_services/VariableServer/VariableServerListenThread.cpp b/trick_source/sim_services/VariableServer/VariableServerListenThread.cpp index 1c6dc8a27..35ae42c5e 100644 --- a/trick_source/sim_services/VariableServer/VariableServerListenThread.cpp +++ b/trick_source/sim_services/VariableServer/VariableServerListenThread.cpp @@ -122,6 +122,8 @@ int Trick::VariableServerListenThread::check_and_move_listen_device() { if (ret != 0) { message_publish(MSG_ERROR, "ERROR: Could not establish variable server source_address %s: port %d. Aborting.\n", _requested_source_address.c_str(), _requested_port); + + ret = -1; } _requested_port = _listener->getPort();