Network/UdpSocket: Improve code
Former-commit-id: 66ad787d036b6c855dd2a0872c2ceecff9a1674e
This commit is contained in:
parent
a9611680e7
commit
328083638e
|
|
@ -76,16 +76,16 @@ namespace Nz
|
||||||
|
|
||||||
void UdpSocket::OnClose()
|
void UdpSocket::OnClose()
|
||||||
{
|
{
|
||||||
m_boundAddress = IpAddress::Invalid;
|
AbstractSocket::OnClose();
|
||||||
|
|
||||||
UpdateState(SocketState_NotConnected);
|
m_boundAddress = IpAddress::Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UdpSocket::OnOpened()
|
void UdpSocket::OnOpened()
|
||||||
{
|
{
|
||||||
|
AbstractSocket::OnOpened();
|
||||||
|
|
||||||
m_boundAddress = IpAddress::Invalid;
|
m_boundAddress = IpAddress::Invalid;
|
||||||
m_isBroadCastingEnabled = false;
|
m_isBroadCastingEnabled = false;
|
||||||
|
|
||||||
UpdateState(SocketState_NotConnected);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue