Bugfix for the exception handling change.

This commit is contained in:
Gunnar Beutner 2012-04-30 12:50:11 +02:00
parent 7e4788720d
commit f497c5e932

View File

@ -23,12 +23,13 @@ int JsonRpcClient::DataAvailableHandler(const EventArgs& ea)
try { try {
Message message; Message message;
if (Netstring::ReadMessageFromFIFO(GetRecvQueue(), &message)) { if (!Netstring::ReadMessageFromFIFO(GetRecvQueue(), &message))
NewMessageEventArgs nea; break;
nea.Source = shared_from_this();
nea.Message = message; NewMessageEventArgs nea;
OnNewMessage(nea); nea.Source = shared_from_this();
} nea.Message = message;
OnNewMessage(nea);
} catch (const Exception& ex) { } catch (const Exception& ex) {
Application::Log("Exception while processing message from JSON-RPC client: " + ex.GetMessage()); Application::Log("Exception while processing message from JSON-RPC client: " + ex.GetMessage());
Close(); Close();