import voxo.common.packets.VoiceConnexionPacket;
public class CancelVoiceAction {
public CancelVoiceAction(ClientController c, String contactIp, VoiceConnexionPacket p) {
try {
NetworkService.sendPacket(contactIp, new Packet(EnumPacket.CLIENT_CancelVoice, p));
} catch (UnknownHostException e) {
c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
new ServerErrorAction(c);
} catch (IOException e) {
c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));