Stop expiry timer when upload is complete. Log if timeout is reached.

avinationmerge
Melanie 2012-09-12 21:14:55 +02:00
parent 5139db2638
commit d8e9188908
1 changed files with 2 additions and 0 deletions

View File

@ -1149,6 +1149,7 @@ namespace OpenSim.Region.ClientStack.Linden
res = LLSDHelpers.SerialiseLLSDReply(uploadComplete);
httpListener.RemoveStreamHandler("POST", uploaderPath);
m_timeoutTimer.Stop();
// TODO: probably make this a better set of extensions here
string extension = ".jp2";
@ -1172,6 +1173,7 @@ namespace OpenSim.Region.ClientStack.Linden
private void TimedOut(object sender, ElapsedEventArgs args)
{
m_log.InfoFormat("[CAPS]: Removing URL and handler for timed out mesh upload");
httpListener.RemoveStreamHandler("POST", uploaderPath);
}