Network/AbstractSocket: Update OnStateChange signal
Now it is called before the state changes really Former-commit-id: 3eec47302a971d798e1a75415377243bd743ce3f
This commit is contained in:
@@ -35,9 +35,8 @@ namespace Nz
|
||||
{
|
||||
if (m_state != newState)
|
||||
{
|
||||
SocketState oldState = m_state;
|
||||
OnStateChange(this, m_state);
|
||||
m_state = newState;
|
||||
OnStateChange(this, oldState, m_state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user