public void run() {
		
		EventHandler dataEvent;
		
		while(true) {
			synchronized(queue) {
				while(queue.isEmpty()) {
					try{
						queue.wait();
					} catch(InterruptedException e){	
					
					}
				}
				dataEvent = (EventHandler) queue.remove(0);
			}
			
			//  return to sender
			dataEvent.server.send(dataEvent.socket, dataEvent.dataToSend);
			
		}
		
	}