Skip to content

Commit

Permalink
Merge pull request #1099 from Kitware/imagestream_disconnect
Browse files Browse the repository at this point in the history
fix(ImageStream): typo in disconnect
  • Loading branch information
aronhelser committed Jun 6, 2019
2 parents a75a778 + 3371271 commit ff6de69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Sources/IO/Core/ImageStream/index.js
Expand Up @@ -64,12 +64,11 @@ function vtkImageStream(publicAPI, model) {
// --------------------------------------------------------------------------

publicAPI.disconnect = () => {
if (model.protocol && model.connected) {
model.protocol.unsubscribeToImageStream(
model.imageStreamTopicSubscription
);
model.imageStreamTopicSubscription = null;
if (model.protocol && model.connected && model.renderTopicSubscription) {
model.protocol.unsubscribeToImageStream(model.renderTopicSubscription);
model.renderTopicSubscription = null;
}
model.connected = false;
};

// --------------------------------------------------------------------------
Expand Down

0 comments on commit ff6de69

Please sign in to comment.