Have initialize_socket() set socket_was_preactivated always

This commit is contained in:
Kovid Goyal 2023-10-16 14:04:08 +05:30
parent 77f303179c
commit 32d80a0cfe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -488,6 +488,7 @@ class ServerLoop:
def initialize_socket(self): def initialize_socket(self):
if self.pre_activated_socket is None: if self.pre_activated_socket is None:
self.socket_was_preactivated = False
try: try:
self.do_bind() self.do_bind()
except OSError as err: except OSError as err: