Skip to content

Conversation

msfredb7
Copy link

The exception was the following:
ArgumentOutOfRangeException
thrown by HandleTransportDataEvent
called by ReceiveMessages
called by ProcessEvent
called by ShutdownInternals
called by DisconnectLocalClient()

Since the exception arose when trying to handle data events while m_State is Disconnected, I removed the m_State = Disconnected from the DisconnectLocalClient() method. ShutdownInternals already sets the m_State variable to Disconnected after it's down handling events.

The exception was the following: 
ArgumentOutOfRangeException
thrown by HandleTransportDataEvent
called by ReceiveMessages
called by ProcessEvent
called by ShutdownInternals
called by DisconnectLocalClient()

Since the exception arose when trying to handle data events while m_State is Disconnected, I removed the m_State = Disconnected from the DisconnectLocalClient() method. ShutdownInternals already sets the m_State variable to Disconnected after it's down handling events.
@msfredb7
Copy link
Author

To reproduce the issue, you could simply have the server shutdown and frequently the clients would get this error.

@msfredb7
Copy link
Author

Let me know if the change makes sense to you @ooonush

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.

1 participant