don't call setLogTarget from setSyslogSocket when holding the lock

If we do, setLogTarget will wait for the lock, but it will never be released
pull/1770/head
Sander Hoentjen 2017-05-08 14:11:07 +02:00
parent b13d9d4e22
commit 2a4dafce5b
1 changed files with 3 additions and 3 deletions

View File

@ -638,9 +638,9 @@ class Server:
if self.__syslogSocket == syslogsocket:
return True
self.__syslogSocket = syslogsocket
# Conditionally reload, logtarget depends on socket path when SYSLOG
return self.__logTarget != "SYSLOG"\
or self.setLogTarget(self.__logTarget)
# Conditionally reload, logtarget depends on socket path when SYSLOG
return self.__logTarget != "SYSLOG"\
or self.setLogTarget(self.__logTarget)
def getLogTarget(self):
with self.__loggingLock: