terminate acceptor and sessions on stop

This commit is contained in:
orignal 2014-12-17 15:21:50 -05:00
parent 84235fe479
commit a44ca91409
3 changed files with 30 additions and 14 deletions

11
SAM.h
View file

@ -131,12 +131,11 @@ namespace client
{
ClientDestination * localDestination;
std::list<std::shared_ptr<SAMSocket> > sockets;
~SAMSession ()
{
for (auto it: sockets)
it->SetSocketType (eSAMSocketTypeTerminated);
}
SAMSession (ClientDestination * localDestination);
~SAMSession ();
void CloseStreams ();
};
class SAMBridge