mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[TCPIP]
- Cancel the disconnect timer if the disconnect is cancelled svn path=/trunk/; revision=53017
This commit is contained in:
@@ -120,6 +120,7 @@ VOID NTAPI DispCancelRequest(
|
||||
PTRANSPORT_CONTEXT TranContext;
|
||||
PFILE_OBJECT FileObject;
|
||||
UCHAR MinorFunction;
|
||||
PCONNECTION_ENDPOINT Connection;
|
||||
BOOLEAN DequeuedIrp = TRUE;
|
||||
|
||||
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
||||
@@ -171,7 +172,16 @@ VOID NTAPI DispCancelRequest(
|
||||
break;
|
||||
|
||||
case TDI_DISCONNECT:
|
||||
Connection = (PCONNECTION_ENDPOINT)TranContext->Handle.ConnectionContext;
|
||||
|
||||
DequeuedIrp = TCPRemoveIRP(TranContext->Handle.ConnectionContext, Irp);
|
||||
if (DequeuedIrp)
|
||||
{
|
||||
if (KeCancelTimer(&Connection->DisconnectTimer))
|
||||
{
|
||||
DereferenceObject(Connection);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user