fix: compiler warnings
This commit is contained in:
@@ -13,10 +13,10 @@ namespace td {
|
||||
namespace network {
|
||||
|
||||
Socket::Socket(Type type)
|
||||
: m_Handle(INVALID_SOCKET),
|
||||
: m_Blocking(false),
|
||||
m_Type(type),
|
||||
m_Blocking(false),
|
||||
m_Status(Disconnected)
|
||||
m_Status(Disconnected),
|
||||
m_Handle(INVALID_SOCKET)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -33,6 +33,8 @@ bool Socket::SetBlocking(bool block) {
|
||||
}
|
||||
|
||||
m_Blocking = block;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Socket::IsBlocking() const noexcept {
|
||||
|
||||
Reference in New Issue
Block a user