Skip to content
Snippets Groups Projects
Commit ad816627 authored by Ernesto Corbellini's avatar Ernesto Corbellini
Browse files

Added finalize method to the client.

parent b8c90622
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,9 @@ public class ActionClient<T_ACTION_GOAL extends Message,
if (serverResult != null) {
serverResult.shutdown(5, TimeUnit.SECONDS);
}
if (serverStatus != null) {
serverStatus.shutdown(5, TimeUnit.SECONDS);
}
}
public void gotResult(T_ACTION_RESULT message) {
......@@ -142,4 +145,8 @@ public class ActionClient<T_ACTION_GOAL extends Message,
unpublishClient();
unsubscribeToServer();
}
protected void finalize() {
finish();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment