Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions fastddsspy_tool/src/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ int main(
}
};

#if !defined(__APPLE__)
// Creating FileWatcher event handler
std::unique_ptr<eprosima::utils::event::FileWatcherHandler> file_watcher_handler =
std::make_unique<eprosima::utils::event::FileWatcherHandler>(filewatcher_callback, file_path);
#endif // !defined(__APPLE__)

/////
// Periodic Handler for reload configuration in periodic time
Expand Down Expand Up @@ -233,10 +235,12 @@ int main(
periodic_handler.reset();
}

#if !defined(__APPLE__)
if (file_watcher_handler)
{
file_watcher_handler.reset();
}
#endif // !defined(__APPLE__)
}
catch (const eprosima::utils::ConfigurationException& e)
{
Expand Down