clang warning, seems like you wanted braces

and sleep

or not a semicolon on the if()