summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/session.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 661086b..8a311bf 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -10,8 +10,7 @@
#include <cstring>
#include <sys/socket.h>
-CSession::CSession()
- : m_addrLen(sizeof(m_addr)) {
+CSession::CSession() {
m_sockfd = Hyprutils::OS::CFileDescriptor{accept(g_pServer->getSocket()->get(), reinterpret_cast<sockaddr *>(&m_addr), &m_addrLen)}; // if this is in the init list, it will run before m_addrLen, so it won't work :/
if (!m_sockfd.isValid())