Skip to content

Commit

Permalink
Do not exit after listing available devices. Fixes #2144
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Jun 2, 2024
1 parent 209e3a9 commit 524bfd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
{
// List available physical devices and exit
RemoteTCPSinkStarter::listAvailableDevices();
exit (EXIT_SUCCESS);
return EXIT_SUCCESS;
}

if (parser.getRemoteTCPSink()) {
Expand Down Expand Up @@ -247,7 +247,9 @@ int main(int argc, char* argv[])

int res = runQtApplication(argc, argv, logger);

delete logger;
if (logger) {
delete logger;
}

qWarning("SDRangel quit.");
return res;
Expand Down

0 comments on commit 524bfd4

Please sign in to comment.