-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
component._stopping attribute never cleared #1613
Comments
yes indeed: the attribute is initially set here autobahn-python/autobahn/wamp/component.py Line 534 in 01165cf
and before stopping starts it is set here autobahn-python/autobahn/wamp/component.py Line 718 in 01165cf
but it isn't reset once the stopping has finished (the component session left) |
I should note that even if the attribute would be reset correctly, you can't start the component again anyways, so the component object is for the bin, and the value of the attribute of a finished component is questionable .. in a way |
Why i can not restart a component ? |
as far as I see, there is no public API to restart
@meejah any hints from you side, is component supposed to be restartable? if so, how? |
True, it is not a plublic API
For me it is useful when you registered plenty of services but you just want disconnect/connect a component |
It's been a while since I've thought about Component ;) but I don't believe I considered re-starting. The "state-machine" of Component is basically a one-way trip towards "done" currently .. although because clients have to allow the possibility of re-connect, it could certainly be possible to make "done -> start" a valid thing to do. I'm not clear on the use-case: is it just to dis/re-connect? Or I guess, what does "re-starting" a component mean exactly? |
when calling
component.stop()
,_stopping
attribute is set to True but it is never cleared (False value)The text was updated successfully, but these errors were encountered: