mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 23:39:46 +00:00
unrealircd: Move SSL and port generation out of the critical section (#196)
This commit is contained in:
@ -223,7 +223,6 @@ class UnrealircdController(BaseServerController, DirectoryBasedController):
|
|||||||
|
|
||||||
password_field = 'password "{}";'.format(password) if password else ""
|
password_field = 'password "{}";'.format(password) if password else ""
|
||||||
|
|
||||||
with _STARTSTOP_LOCK():
|
|
||||||
(services_hostname, services_port) = self.get_hostname_and_port()
|
(services_hostname, services_port) = self.get_hostname_and_port()
|
||||||
(unused_hostname, unused_port) = self.get_hostname_and_port()
|
(unused_hostname, unused_port) = self.get_hostname_and_port()
|
||||||
|
|
||||||
@ -261,6 +260,7 @@ class UnrealircdController(BaseServerController, DirectoryBasedController):
|
|||||||
else:
|
else:
|
||||||
faketime_cmd = []
|
faketime_cmd = []
|
||||||
|
|
||||||
|
with _STARTSTOP_LOCK():
|
||||||
self.proc = subprocess.Popen(
|
self.proc = subprocess.Popen(
|
||||||
[
|
[
|
||||||
*faketime_cmd,
|
*faketime_cmd,
|
||||||
|
Reference in New Issue
Block a user