Bugs fixed: 1) call Exit at thread end (otherwise the thread does not really terminates) 2) set isRunning properly 3) Avoid waiting on threads that are invalid or not in execution
Bugs fixed:
1) call Exit at thread end (otherwise the thread does not really terminates)
2) set isRunning properly
3) Avoid waiting on threads that are invalid or not in execution


git-svn-id: 8774728dfebeb12281c733e757c2fb12a22b10a4@24895 e8e8ed6c-164c-0410-afcf-9e9a7c7d8c10

pohly/funambol-cpp-client-api,pohly/funambol-cpp-client-api,pohly/funambol-cpp-client-api,pohly/funambol-cpp-client-api,pohly/funambol-cpp-client-api