-
Notifications
You must be signed in to change notification settings - Fork 156
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
AttributeError on pymorse close() #557
Comments
Could you test with 1ecd5a1 |
Well, now I get the following exception instead:
|
The call to close is unnecessarily, as it is basically call at the end of the with scope (its is the main goal of the with syntax :)). Otherwise, the issue is that Morse._asyncore_thread is set to None line 597, and accessed again in the second call to close. |
Without that line, pymorse will actually never quit. I was looking for a workaround to that problem hoping that adding cancel_async_services=True will actually kill the async services that block pymorse from closing. |
Could you test df8d098 please ? |
That did the trick as far as I can see. |
If we call close more than once, the thread is already dead, so just do nothing in this case. Fix morse-simulator#557
When running close() as shown below, I get the exception attached. This is invoked when the roslaunch running my morse and this pymorse app is killed, so it is likely that morse itself is dead by then. Still, it should be possible to close pymorse without error.
The text was updated successfully, but these errors were encountered: