aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/protocols/rtc.cc20
-rw-r--r--libtransport/src/protocols/rtc.h2
2 files changed, 2 insertions, 20 deletions
diff --git a/libtransport/src/protocols/rtc.cc b/libtransport/src/protocols/rtc.cc
index 4fb352623..3b10c7467 100644
--- a/libtransport/src/protocols/rtc.cc
+++ b/libtransport/src/protocols/rtc.cc
@@ -52,26 +52,8 @@ int RTCTransportProtocol::start() {
probeRtt();
sentinelTimer();
newRound();
- scheduleNextInterests();
-
- is_first_ = false;
- is_running_ = true;
-
- if (is_async_) {
- portal_->runEventsLoop();
- is_running_ = false;
- }
- return 0;
-}
-
-void RTCTransportProtocol::stop() {
- if (!is_running_) return;
- is_running_ = false;
-
- if (is_async_) {
- portal_->stopEventsLoop();
- }
+ return TransportProtocol::start();
}
void RTCTransportProtocol::resume() {
diff --git a/libtransport/src/protocols/rtc.h b/libtransport/src/protocols/rtc.h
index f15cdd1eb..a12c96b69 100644
--- a/libtransport/src/protocols/rtc.h
+++ b/libtransport/src/protocols/rtc.h
@@ -95,7 +95,7 @@ class RTCTransportProtocol : public TransportProtocol,
int start() override;
- void stop() override;
+ using TransportProtocol::stop;
void resume() override;