Commit 88f3353a authored by Matt Strum's avatar Matt Strum
Browse files

Better code to handle the timer cleanup.

parent b2c7ec18
/* GENIPUBLIC-COPYRIGHT
/* GENIPUBLIC-COPYRIGHT
* Copyright (c) 2008, 2009 University of Utah and the Flux Group.
* All rights reserved.
*
......@@ -147,8 +147,6 @@ package
{
server.removeEventListener(Event.COMPLETE, callSuccess);
server.removeEventListener(ErrorEvent.ERROR, callFailure);
server.observeTimer.stop();
server.observeTimer = null;
server.cleanup();
server = null;
}
......
......@@ -81,6 +81,11 @@ package com.mattism.http.xmlrpc
// this._response.removeEventListener(ProgressEvent.PROGRESS, progress);
this._response.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityError);
if(observeTimer != null)
{
observeTimer.stop();
observeTimer = null;
}
}
public function call(method : String) : void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment