Skip to content

Commit 5c7b7d4

Browse files
committed
TD_EXPERIMENTAL_WATCH_OS cmake option
1 parent f866729 commit 5c7b7d4

18 files changed

Lines changed: 639 additions & 250 deletions

‎CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ prevent_in_source_build()
3131

3232
option(TD_ENABLE_JNI "Use \"ON\" to enable JNI-compatible TDLib API.")
3333
option(TD_ENABLE_DOTNET "Use \"ON\" to enable generation of C++/CLI or C++/CX TDLib API bindings.")
34+
option(TD_EXPERIMENTAL_WATCH_OS "Use \"ON\" to enable watch os support.")
3435

3536
if (TD_ENABLE_DOTNET AND (CMAKE_VERSION VERSION_LESS "3.1.0"))
3637
message(FATAL_ERROR "CMake 3.1.0 or higher is required. You are running version ${CMAKE_VERSION}.")

‎td/mtproto/HandshakeActor.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ void HandshakeActor::return_connection(Status status) {
5555
CHECK(!raw_connection_promise_);
5656
return;
5757
}
58-
if (status.is_error() && !raw_connection->debug_str_.empty()) {
59-
status = Status::Error(status.code(), PSLICE() << status.message() << " : " << raw_connection->debug_str_);
58+
if (status.is_error() && !raw_connection->extra().debug_str.empty()) {
59+
status = Status::Error(status.code(), PSLICE() << status.message() << " : " << raw_connection->extra().debug_str);
6060
}
6161
Scheduler::unsubscribe(raw_connection->get_poll_info().get_pollable_fd_ref());
6262
if (raw_connection_promise_) {

‎td/mtproto/Ping.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ActorOwn<> create_ping_actor(string debug, unique_ptr<RawConnection> raw_connect
8585
raw_connection->close();
8686
promise_.set_error(std::move(status));
8787
} else {
88-
raw_connection->rtt_ = ping_connection_->rtt();
88+
raw_connection->extra().rtt = ping_connection_->rtt();
8989
if (raw_connection->stats_callback()) {
9090
raw_connection->stats_callback()->on_pong();
9191
}

0 commit comments

Comments
 (0)