- multithreading fix

Signed-off-by: easymodo <easymodofrf@gmail.com>