update
This commit is contained in:
parent
c96c3ed552
commit
151e23df2e
2
das-dn/third_party/AdsLib/Sockets.cpp
vendored
2
das-dn/third_party/AdsLib/Sockets.cpp
vendored
@ -174,7 +174,7 @@ int Socket::GetError() const
|
|||||||
|
|
||||||
bool Socket::IsConnected() const
|
bool Socket::IsConnected() const
|
||||||
{
|
{
|
||||||
return IsValid() &&m_Connected;
|
return IsValid() && m_Connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Socket::Shutdown()
|
void Socket::Shutdown()
|
||||||
|
@ -85,9 +85,12 @@ AmsConnection::~AmsConnection()
|
|||||||
{
|
{
|
||||||
if (socket.IsConnected())
|
if (socket.IsConnected())
|
||||||
{
|
{
|
||||||
socket.Shutdown();
|
|
||||||
receiver.join();
|
receiver.join();
|
||||||
}
|
}
|
||||||
|
if (socket.IsValid())
|
||||||
|
{
|
||||||
|
socket.Shutdown();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedDispatcher AmsConnection::CreateNotifyMapping(uint32_t hNotify, std::shared_ptr<Notification> notification)
|
SharedDispatcher AmsConnection::CreateNotifyMapping(uint32_t hNotify, std::shared_ptr<Notification> notification)
|
||||||
|
Loading…
Reference in New Issue
Block a user