Skip to content

Commit 22fbe2b

Browse files
committed
utils/ptp: Stop in destructor
1 parent be065d7 commit 22fbe2b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/utils/ptp.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ namespace detail{
9999
*/
100100
class Ptp_clock{
101101
public:
102+
~Ptp_clock() { stop(); }
103+
102104
void start(std::string_view interface_name);
103105
void stop();
104106

0 commit comments

Comments
 (0)