Moving the client thread from pol.cpp to own file