From cb1e9772a9526da37b7a155109bb481d56d97f5b Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Thu, 1 Aug 2019 04:55:22 -0600 Subject: 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. --- src/socket.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/socket.cpp') 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)); -- cgit v1.3.1-10-gc9f91