Skip to content

Commit

Permalink
[Server] Do not reference a deleted object.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Dec 8, 2017
1 parent 5207a92 commit 1b31eb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdXrootd/XrdXrootdTransit.cc
Expand Up @@ -116,6 +116,7 @@ int XrdXrootdTransit::Attn(XrdLink *lP, short *theSID, int rcode,
int XrdXrootdTransit::AttnCont(XrdXrootdTransPend *tP, int rcode,
const struct iovec *ioV, int ioN, int ioL)
{
XrdLink *theLink = tP->link;
int rc;

// Refresh the request structure
Expand Down Expand Up @@ -143,7 +144,7 @@ int XrdXrootdTransit::AttnCont(XrdXrootdTransPend *tP, int rcode,
{AtomicBeg(runMutex);
AtomicZAP(runStatus);
AtomicEnd(runMutex);
tP->link->Enable();
theLink->Enable();
} else {
if (runWait >= 0)
Sched->Schedule((XrdJob *)&waitJob, time(0)+runWait);
Expand Down

0 comments on commit 1b31eb7

Please sign in to comment.