Fix compile
Double declared variable plus missing ;, sorry :/
This commit is contained in:
parent
0f734de3e9
commit
258739cd93
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ LanLinkProvider::LanLinkProvider()
|
|||
|
||||
void LanLinkProvider::onStart()
|
||||
{
|
||||
bool buildSucceed = mUdpServer->bind(QHostAddress::Broadcast, port, QUdpSocket::ShareAddress)
|
||||
bool buildSucceed = mUdpServer->bind(QHostAddress::Broadcast, port, QUdpSocket::ShareAddress);
|
||||
Q_ASSERT(buildSucceed);
|
||||
|
||||
mTcpPort = port;
|
||||
|
@ -117,7 +117,7 @@ void LanLinkProvider::newUdpConnection()
|
|||
mUdpServer->readDatagram(datagram.data(), datagram.size(), &sender);
|
||||
|
||||
NetworkPackage* receivedPackage = new NetworkPackage("");
|
||||
bool success = NetworkPackage::unserialize(datagram, receivedPackage);
|
||||
success = NetworkPackage::unserialize(datagram, receivedPackage);
|
||||
|
||||
if (!success || receivedPackage->type() != PACKAGE_TYPE_IDENTITY) {
|
||||
delete receivedPackage;
|
||||
|
|
Loading…
Reference in a new issue