closing a stream multiple times shouldn't kill the SAM session (thanks for the bug report Connelly)

This commit is contained in:
jrandom
2004-07-18 15:02:54 +00:00
committed by zzz
parent b1f802c42d
commit d7a1fee781

View File

@ -660,7 +660,10 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
}
}
return streamSession.closeConnection(id);
boolean closed = streamSession.closeConnection(id);
if ( (!closed) && (_log.shouldLog(Log.WARN)) )
_log.warn("Stream unable to be closed, but this is non fatal");
return true;
}
/* Check whether a size is inside the limits allowed by this protocol */