use Packet for IceServer packets

This commit is contained in:
Stephen Birarda 2015-07-07 15:25:05 -07:00
parent 089cb8a39e
commit 22b3ce8759

View file

@ -127,7 +127,7 @@ SharedNetworkPeer IceServer::addOrUpdateHeartbeatingPeer(const QByteArray& incom
}
void IceServer::sendPeerInformationPacket(const NetworkPeer& peer, const HifiSockAddr* destinationSockAddr) {
auto peerPacket { NLPacket::create(PacketType::IceServerPeerInformation); }
auto peerPacket = Packet::create(PacketType::IceServerPeerInformation);
// get the byte array for this peer
peerPacket->write(peer.toByteArray());