diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-04-11 20:54:34 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-04-12 21:36:41 +0800 |
| commit | a35804ced780e5f20b1aa606fa10f64536c095fb (patch) | |
| tree | 1d77bf3e5d78dcffae29e43a741da4938197b478 /src/session.cpp | |
| parent | 09f675aed69d5a928ab9d7a5798e8f406986a147 (diff) | |
perf(session): unecessary init of m_addrLen
Diffstat (limited to 'src/session.cpp')
| -rw-r--r-- | src/session.cpp | 3 |
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()) |
