Fix AutoConnection::debugState() for TCP connections. Fix #3171
Also silent new Xcode version warning.
This commit is contained in:
parent
a851497bbf
commit
f0ab72ffbc
|
@ -307,7 +307,7 @@ bool AutoConnection::needHttpWait() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 AutoConnection::debugState() const {
|
int32 AutoConnection::debugState() const {
|
||||||
return (status == UsingHttp) ? -1 : (UsingTcp ? sock.state() : -777);
|
return (status == UsingHttp) ? -1 : ((status == UsingTcp) ? sock.state() : -777);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AutoConnection::transport() const {
|
QString AutoConnection::transport() const {
|
||||||
|
|
|
@ -20,7 +20,7 @@ else
|
||||||
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja
|
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja
|
||||||
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode
|
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode
|
||||||
# use patched gyp with Xcode project generator
|
# use patched gyp with Xcode project generator
|
||||||
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp -Gxcode_upgrade_check_project_version=820 --format=xcode
|
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp -Gxcode_upgrade_check_project_version=830 --format=xcode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
Loading…
Reference in New Issue