mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Amend python 3.9 compatibility fix
Avoid checking None for is_alive or isAlive
This commit is contained in:
parent
b42dafb085
commit
83acdab216
@ -2548,12 +2548,13 @@ class ConfigManager(object):
|
||||
if statelessmode:
|
||||
return
|
||||
with cls._syncstate:
|
||||
try:
|
||||
isalive = cls._cfgwriter.isAlive()
|
||||
except AttributeError:
|
||||
isalive = cls._cfgwriter.is_alive()
|
||||
if (cls._syncrunning and cls._cfgwriter is not None and
|
||||
isalive):
|
||||
isalive = False
|
||||
if cls._cfgwriter is not None:
|
||||
try:
|
||||
isalive = cls._cfgwriter.isAlive()
|
||||
except AttributeError:
|
||||
isalive = cls._cfgwriter.is_alive()
|
||||
if (cls._syncrunning and isalive):
|
||||
cls._writepending = True
|
||||
return
|
||||
if cls._syncrunning: # This suggests an unclean write attempt,
|
||||
|
Loading…
Reference in New Issue
Block a user