Skip to content

Commit 640fccb

Browse files
committed
included #3c58fea5628a98a0677e3a73ebb0013c2768e403 from Salvo
1 parent e8b21bb commit 640fccb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/github/rosjava_actionlib/ActionServer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ public void run() {
151151
* Stop publishing the action server topics.
152152
*/
153153
private void unpublishServer() {
154+
// Stop the task run by the Timer.
155+
statusTick.cancel();
156+
statusTick.purge();
157+
154158
if (statusPublisher != null) {
155159
statusPublisher.shutdown(5, TimeUnit.SECONDS);
156160
statusPublisher = null;

0 commit comments

Comments
 (0)