Skip to content

Commit 0029e36

Browse files
author
Barkin Simsek
committed
Allow already unsubscribed callers.
1 parent 05337ba commit 0029e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/mujinwebstackclient/controllerwebclientraw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ async def _Unsubscribe():
567567
if not self._IsWebSocketConnectionOpen():
568568
return
569569

570-
# check if the subscription exists
570+
# check if the subscription exists at all
571571
if subscription.GetSubscriptionID() not in self._subscriptions:
572-
raise ControllerGraphClientException(_('Unknown subscription %r') % (subscription))
572+
return
573573

574574
# actually unsubscribe and wait until there is a result
575575
self._backgroundThread.RunCoroutine(_Unsubscribe()).result()

0 commit comments

Comments
 (0)