Fixed crash in Endpoint::GetAddress().

This commit is contained in:
Gunnar Beutner 2012-09-07 09:48:57 +02:00
parent 34a8703187
commit e3d95a4181
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ String Endpoint::GetAddress(void) const
} else {
JsonRpcClient::Ptr client = GetClient();
if (!client)
if (!client || !client->IsConnected())
return "<disconnected endpoint>";
return client->GetPeerAddress();