When stopping the CTP service, we use the flag 'usLeaving' to notify all threads that the CTP is in leaving state. The fix is to make sure that this flag is always set, even if socket is down.
When stopping the CTP service, we use the flag 'usLeaving' to notify all threads that the CTP is in leaving state.
The fix is to make sure that this flag is always set, even if socket is down.


git-svn-id: 8774728dfebeb12281c733e757c2fb12a22b10a4@26067 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