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()
|
void LanLinkProvider::onStart()
|
||||||
{
|
{
|
||||||
bool buildSucceed = mUdpServer->bind(QHostAddress::Broadcast, port, QUdpSocket::ShareAddress)
|
bool buildSucceed = mUdpServer->bind(QHostAddress::Broadcast, port, QUdpSocket::ShareAddress);
|
||||||
Q_ASSERT(buildSucceed);
|
Q_ASSERT(buildSucceed);
|
||||||
|
|
||||||
mTcpPort = port;
|
mTcpPort = port;
|
||||||
|
@ -117,7 +117,7 @@ void LanLinkProvider::newUdpConnection()
|
||||||
mUdpServer->readDatagram(datagram.data(), datagram.size(), &sender);
|
mUdpServer->readDatagram(datagram.data(), datagram.size(), &sender);
|
||||||
|
|
||||||
NetworkPackage* receivedPackage = new NetworkPackage("");
|
NetworkPackage* receivedPackage = new NetworkPackage("");
|
||||||
bool success = NetworkPackage::unserialize(datagram, receivedPackage);
|
success = NetworkPackage::unserialize(datagram, receivedPackage);
|
||||||
|
|
||||||
if (!success || receivedPackage->type() != PACKAGE_TYPE_IDENTITY) {
|
if (!success || receivedPackage->type() != PACKAGE_TYPE_IDENTITY) {
|
||||||
delete receivedPackage;
|
delete receivedPackage;
|
||||||
|
|
Loading…
Reference in a new issue