Network/UdpSocket: Improve code

Former-commit-id: 66ad787d036b6c855dd2a0872c2ceecff9a1674e
This commit is contained in:
Lynix 2015-11-13 13:07:24 +01:00
parent a9611680e7
commit 328083638e
1 changed files with 5 additions and 5 deletions

View File

@ -76,16 +76,16 @@ namespace Nz
void UdpSocket::OnClose()
{
m_boundAddress = IpAddress::Invalid;
AbstractSocket::OnClose();
UpdateState(SocketState_NotConnected);
m_boundAddress = IpAddress::Invalid;
}
void UdpSocket::OnOpened()
{
AbstractSocket::OnOpened();
m_boundAddress = IpAddress::Invalid;
m_isBroadCastingEnabled = false;
UpdateState(SocketState_NotConnected);
}
}
}