Remove clearSendQueue

Use BreakTransport exception instead
This commit is contained in:
Michael Davidsaver
2015-11-18 16:20:49 -06:00
parent f2b47ef5e9
commit 4a1bfff40f
4 changed files with 38 additions and 62 deletions

View File

@@ -3877,6 +3877,9 @@ namespace epics {
* @param remoteDestroy issue channel destroy request.
*/
void disconnect(bool initiateSearch, bool remoteDestroy) {
// order of oldchan and guard is important to ensure
// oldchan is destoryed after unlock
Transport::shared_pointer oldchan;
Lock guard(m_channelMutex);
if (m_connectionState != CONNECTED)
@@ -3900,7 +3903,7 @@ namespace epics {
}
m_transport->release(getID());
m_transport.reset();
oldchan.swap(m_transport);
}
if (initiateSearch)