public void broadcastFromQueue() { if (myBCC != null && !myBCC.isActive()) { Message nextMessage = getFromQueue(); if (nextMessage != null) { try { myBCC.broadcast(nextMessage); } catch (Exception e) { Logger.debug_printExceptionMessage(e); } } } }
public void addBCC(BroadcastController newBCC) { if (myBCC != null) { int currentRange = myBCC.type().range; int newRange = newBCC.type().range; if (newRange > currentRange) { myBCC = newBCC; } } else { myBCC = newBCC; } Logger.debug_printSashko(myBCC.toString()); }