public void remove(Object removed, int type){
		Drop drop = null;
		
		if(type == 1){
			for(int n = 0; n < managers.size(); n++){
				if(managers.get(n).getDrop().getPath().equals((String) removed)){
					drop = managers.get(n).getDrop();
					
					ports.remove((Integer) Integer.parseInt(managers.get(n).getDrop().getID()));
					
					managers.remove(n);
					threads.get(n).interrupt();
					threads.remove(n);
				}
			}
		}
		else if(type == 2){
			for(int n = 0; n < managers.size(); n++){
				if(managers.get(n).getDrop().getDLTO().equals((String) removed)){
					drop = managers.get(n).getDrop();
					
					managers.remove(n);
					threads.get(n).interrupt();
					threads.remove(n);
				}
			}
		}
		
		Main.status.getPool().removeFile(drop);
	}