delete stream from inside

This commit is contained in:
orignal 2014-12-01 21:26:51 -05:00
parent 38ee813e41
commit 4e54fbec08
7 changed files with 17 additions and 19 deletions

View file

@ -66,8 +66,18 @@ namespace client
void ClientDestination::Run ()
{
if (m_Service)
m_Service->run ();
while (m_IsRunning)
{
try
{
if (m_Service)
m_Service->run ();
}
catch (std::exception& ex)
{
LogPrint ("Destination: ", ex.what ());
}
}
}
void ClientDestination::Start ()