Exit cleanly on avahi error
This commit is contained in:
@@ -194,6 +194,7 @@ int inner_main(int argc, char * argv[])
|
||||
bool quit = false;
|
||||
while (!quit)
|
||||
{
|
||||
try
|
||||
{
|
||||
avahi_publisher publisher(hostname().c_str(), "_wivrn._tcp", control_port);
|
||||
|
||||
@@ -220,6 +221,11 @@ int inner_main(int argc, char * argv[])
|
||||
if (sigint_received)
|
||||
break;
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
pid_t client_pid = start_application();
|
||||
|
||||
Reference in New Issue
Block a user