Skip to content

Conversation

@Wolf480pl
Copy link

When stopping the services, and PeerManager is still alive after
NodeDiscovery was stopped, it may try to send some discovery messages.
This will cause DatagramServer.sendto to throw AttributeError, because
a closed DatagramServer doesn't have a socket attribute.

Prevent this, by checking if the DatagramServer is closed, and dropping
the message if it is.

When stopping the services, and PeerManager is still alive after
NodeDiscovery was stopped, it may try to send some discovery messages.
This will cause DatagramServer.sendto to throw AttributeError, because
a closed DatagramServer doesn't have a `socket` attribute.

Prevent this, by checking if the DatagramServer is closed, and dropping
the message if it is.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.749% when pulling cd7ffec on Wolf480pl:fix-closed-discovery-socket into e1ef07a on ethereum:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants