python-dbus-next icon indicating copy to clipboard operation
python-dbus-next copied to clipboard

Close socket on disconnect

Open elParaguayo opened this issue 2 years ago • 1 comments

As per issue #137, sockets are not closed when the bus is disconnected. This results in users receiving warnings about unclosed sockets.

This PR adds a call to the socket's close method during disconnect.

Closes #137

elParaguayo avatar Jan 07 '23 19:01 elParaguayo

Not sure why test_tcp_connection_with_forwarding fails as it doesn't call bus.disconnect which is the only code I've changed.

elParaguayo avatar Jan 07 '23 19:01 elParaguayo