Hello,
Did you try passing the IO group via the constructor? So that UDPSender looks a bit like that:
public UDPSender(InetAddress externaladdress, int externalport, BlockingQueue<PRC_CommandData> UDPQueue, MediaFlangeIOGroup iogrp) throws SocketException {
socket = new DatagramSocket(30001);
address = externaladdress;
port = externalport;
CmdQueue = UDPQueue;
flangeIO = iogrp;
}
Currently you always recreate the IO group in the while loop:
flangeIO = new MediaFlangeIOGroup(cabinet);
Best,
Johannes