diff options
| author | 2019-08-01 04:55:22 -0600 | |
|---|---|---|
| committer | 2019-08-01 13:23:46 +0100 | |
| commit | cb1e9772a9526da37b7a155109bb481d56d97f5b (patch) | |
| tree | e933fd519fcf2aff8384b4b690ea0230f608502d /src/socket.cpp | |
| parent | Fix a shadowing warning in UserIOHandler::OnError. (diff) | |
Move UNIX socket removal to ListenSocket ctor.
Doing the removal in BindPorts() would remove the socket
during a rehash and not recreate it. Now it's only removed
if it's about to be created.
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 26b5aeee3..f19af36bb 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -118,10 +118,6 @@ int InspIRCd::BindPorts(FailedPortList& failed_ports) continue; } - const bool replace = tag->getBool("replace"); - if (replace && irc::sockets::isunix(fullpath)) - remove(fullpath.c_str()); - irc::sockets::untosa(fullpath, bindspec); if (!BindPort(tag, bindspec, old_ports)) failed_ports.push_back(std::make_pair(bindspec, errno)); |
