Fix an invalid pointer access in ApiClient::DisconnectSync

refs #6724
This commit is contained in:
Gunnar Beutner 2014-08-04 12:48:15 +02:00
parent 6aec8ba394
commit 3c8e84e59e
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ void ApiClient::SendMessageSync(const Dictionary::Ptr& message)
void ApiClient::Disconnect(void)
{
Utility::QueueAsyncCallback(boost::bind(&ApiClient::DisconnectSync, this));
Utility::QueueAsyncCallback(boost::bind(&ApiClient::DisconnectSync, static_cast<ApiClient::Ptr>(GetSelf())));
}
void ApiClient::DisconnectSync(void)