mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 03:22:27 +02:00
fix ugly deref of matchingPeer
This commit is contained in:
parent
5bed3502ef
commit
2c965eee91
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ void IceServer::processPacket(std::unique_ptr<udt::Packet> packet) {
|
|||
qDebug() << "Sending information for peer" << connectRequestID << "to peer" << senderUUID;
|
||||
|
||||
// we have the peer they want to connect to - send them pack the information for that peer
|
||||
sendPeerInformationPacket(*(matchingPeer.data()), &packet->getSenderSockAddr());
|
||||
sendPeerInformationPacket(*matchingPeer, &packet->getSenderSockAddr());
|
||||
|
||||
// we also need to send them to the active peer they are hoping to connect to
|
||||
// create a dummy peer object we can pass to sendPeerInformationPacket
|
||||
|
|
Loading…
Reference in a new issue