File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717const rclnodejs = require ( './native_loader.js' ) ;
1818const DistroUtils = require ( './distro.js' ) ;
1919const Entity = require ( './entity.js' ) ;
20+ const Logging = require ( './logging.js' ) ;
2021const debug = require ( 'debug' ) ( 'rclnodejs:service' ) ;
2122
2223/**
@@ -88,7 +89,8 @@ class Service extends Entity {
8889 ) ;
8990 } )
9091 . catch ( ( error ) => {
91- debug ( `Error processing ${ this . _serviceName } request: ${ error } ` ) ;
92+ const logger = Logging . getLogger ( 'rclnodejs' ) ;
93+ logger . error ( `Error processing ${ this . _serviceName } request: ${ error } ` ) ;
9294 } ) ;
9395 }
9496
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ class TimeSource {
7373 } ) ;
7474 if ( enabled ) {
7575 this . _subscribeToClockTopic ( ) ;
76+ } else if ( this . _node && this . _clockSubscription ) {
77+ this . _node . destroySubscription ( this . _clockSubscription ) ;
78+ this . _clockSubscription = undefined ;
7679 }
7780 }
7881
You can’t perform that action at this time.
0 commit comments