diff --git a/src/quic_entry.cpp b/src/quic_entry.cpp index 6c7a7c2..dfa5566 100644 --- a/src/quic_entry.cpp +++ b/src/quic_entry.cpp @@ -173,14 +173,11 @@ extern "C" unsigned char QUIC_ENTRY(struct streaminfo *pstream, void**pme, int t context=(struct quic_context *)*pme; } - state=quic_analyze_entry(pstream, context, thread_seq, a_packet); - if(pstream->opstate==OP_STATE_CLOSE) - { - state=quic_call_business_plug(pstream, context, NULL, 0, QUIC_INTEREST_KEY_MASK, a_packet); - } + state=quic_analyze_entry(pstream, context, thread_seq, a_packet); - if(state&APP_STATE_DROPME || state&APP_STATE_DROPPKT || pstream->opstate==OP_STATE_CLOSE) - { + if(state&APP_STATE_DROPME || pstream->opstate==OP_STATE_CLOSE) + { + quic_call_business_plug(pstream, context, NULL, 0, QUIC_INTEREST_KEY_MASK, a_packet); quic_free_context(pme, thread_seq); *pme=NULL; return state;