Browse Source

fixed crash on termination

pull/113/head
orignal 10 years ago
parent
commit
08762870b4
  1. 7
      SAM.h

7
SAM.h

@ -76,6 +76,7 @@ namespace client @@ -76,6 +76,7 @@ namespace client
boost::asio::ip::tcp::socket& GetSocket () { return m_Socket; };
void ReceiveHandshake ();
void SetSocketType (SAMSocketType socketType) { m_SocketType = socketType; };
private:
@ -126,6 +127,12 @@ namespace client @@ -126,6 +127,12 @@ namespace client
{
ClientDestination * localDestination;
std::list<std::shared_ptr<SAMSocket> > sockets;
~SAMSession ()
{
for (auto it: sockets)
it->SetSocketType (eSAMSocketTypeTerminated);
}
};
class SAMBridge

Loading…
Cancel
Save