Closed reticulatedpines closed 1 year ago
Slightly bad report, my mistake. The error doesn't trigger on the disconnect(). It triggers on shutdown(). And without the shutdown(), the script never exits, similar to issue 255. But there's no explicit multiprocessing or threads in this one.
fixed in 1.2.0
vncdotool version 1.1.0
VNC server and version Qemu 4.2.1 via -vnc. Hopefully not relevant.
Steps to reproduce
Expected result Clean disconnect with no error when calling disconnect(). Unless there's some API change with 1.1.0 and I'm doing it wrong?
Which erroneous result did you get instead UnhandledError and twisted AlreadyCalledError.
Additional information
I did some digging, and notice that command.py does this:
If I change client.py so it does similar, I don't see the error... but I definitely don't understand this code well enough to know if that's an appropriate fix or I'm just hiding something:
It does seem sensible that ConnectionDone is a special case error, and currently client.py isn't special casing it.