codec: eliminate internalPostClose()

no reason to distinguish before and after
send worker break is _requested_ (won't
actually be stopped).
This commit is contained in:
Michael Davidsaver
2018-04-02 11:30:19 -07:00
parent 434a43dfe1
commit df14a19ae0
2 changed files with 2 additions and 15 deletions

View File

@@ -1045,9 +1045,6 @@ void BlockingTCPTransportCodec::close() {
// Break sender from queue wait
BreakTransport::shared_pointer B(new BreakTransport);
enqueueSendRequest(B);
// post close
internalPostClose();
}
}
@@ -1776,15 +1773,10 @@ void BlockingClientTCPTransportCodec::internalClose() {
TimerCallbackPtr tcb = std::tr1::dynamic_pointer_cast<TimerCallback>(shared_from_this());
_context->getTimer()->cancel(tcb);
}
void BlockingClientTCPTransportCodec::internalPostClose() {
BlockingTCPTransportCodec::internalPostClose();
// _owners cannot change when transport is closed
closedNotifyClients();
}
/**
* Notifies clients about disconnect.
*/