2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 18:11:15 +00:00

Correct arguments for Thread constructor

This commit is contained in:
Jarrod Johnson 2018-07-13 15:43:09 -04:00
parent 042d7ab5cf
commit 80a1bd72e7

View File

@ -1900,7 +1900,7 @@ class ConfigManager(object):
# if the thread is exiting, join it to let it close, just in case
if cls._cfgwriter is not None:
cls._cfgwriter.join()
cls._cfgwriter = threading.Thread(target=cls._sync_to_file, args=fullsync)
cls._cfgwriter = threading.Thread(target=cls._sync_to_file, args=(fullsync,))
cls._cfgwriter.start()
@classmethod