found unclosed bracket for an if-statement that never unlocked the threads