Network/AbstractSocket: Replace OnStateChange signal by OnStateChanged

This commit is contained in:
Lynix
2018-09-30 18:04:49 +02:00
parent e1cfa2e184
commit 583393acd0
3 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2017 Jérôme Leclercq
// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Network module"
// For conditions of distribution and use, see copyright notice in Config.hpp
@@ -66,8 +66,9 @@ namespace Nz
{
if (m_state != newState)
{
OnStateChange(this, newState);
SocketState oldState = m_state;
m_state = newState;
OnStateChange(this, oldState, newState);
}
}
}