Skip to content

Commit

Permalink
Merge branch 'v0.20'
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Mar 12, 2024
2 parents 8ea8c03 + 9cbe6a2 commit 8296892
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/impl/icetransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,16 +604,14 @@ IceTransport::IceTransport(const Configuration &config, candidate_callback candi
}

IceTransport::~IceTransport() {
if (mTimeoutId) {
g_source_remove(mTimeoutId);
mTimeoutId = 0;
}

PLOG_DEBUG << "Destroying ICE transport";
nice_agent_attach_recv(mNiceAgent.get(), mStreamId, 1, g_main_loop_get_context(MainLoop.get()),
NULL, NULL);
nice_agent_remove_stream(mNiceAgent.get(), mStreamId);
mNiceAgent.reset();

if (mTimeoutId)
g_source_remove(mTimeoutId);
}

Description::Role IceTransport::role() const { return mRole; }
Expand Down

0 comments on commit 8296892

Please sign in to comment.