 			return descriptor;
 		}
 		
-		protected function sendResults(msg:String):void{
-			if(socket.connected){
+		protected function sendResults(msg:String):void
+		{
+			if(socket.connected)
+			{
 				socket.send( msg );				
 			}
 			
-			//trace(msg);
-		}
-		
-		private function handleConnect(event:Event):void{
+			trace(msg);
+		}
+		
+		private function handleConnect(event:Event):void
+		{
 			_ready = true;
 			dispatchEvent( new Event( AsyncListenerWatcher.LISTENER_READY ) );
 		}
 
-		private function errorHandler(event:Event):void{
+		private function errorHandler(event:Event):void
+		{
 			dispatchEvent( new Event( AsyncListenerWatcher.LISTENER_FAILED ) );
 		}
 

 
			var xml : String = null;
			
			if(FailureFormatter.isError(failure.exception)) {
				xml =
					"<testcase classname='"+descriptor.suite+"'name='"+descriptor.method+"' time='0.000'  status='"+ERROR+"'>"+
					"<error message='" + message + "' type='"+ type +"' >"+
					"<stackTraceInfo>" +stackTrace+ "</stackTraceInfo>"+
					"</error>"+
					"</testcase>";
			}
			else {
				xml =
					"<testcase classname='"+descriptor.suite+"'name='"+descriptor.method+"' time='0.000'  status='"+FAILURE+"'>"+
					"<failure message='" + message + "' type='"+ type +"' >"+
					"<stackTraceInfo>" +stackTrace+ "</stackTraceInfo>"+
					"</failure>"+
					"</testcase>";
			}
			
			sendResults(xml);
		}
		/*
		* Internal methods
		*/
		
		private function getDescriptorFromDescription(description:IDescription ):Descriptor{
			// reads relavent data from descriptor
			/**
			 * JAdkins - 7/27/07 - FXU-53 - Listener was returning a null value for the test class

		
		private var lastFailedTest:IDescription;
		
		public function CIListener(port : uint = DEFAULT_PORT, server : String = DEFAULT_SERVER) 
		{
			this.port = port;
			this.server = server;
			
