aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QXmppRtpChannel.cpp9
-rw-r--r--src/QXmppRtpChannel.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/QXmppRtpChannel.cpp b/src/QXmppRtpChannel.cpp
index ee47c524..a9e85ccc 100644
--- a/src/QXmppRtpChannel.cpp
+++ b/src/QXmppRtpChannel.cpp
@@ -247,6 +247,15 @@ qint64 QXmppRtpChannel::bytesAvailable() const
return d->incomingBuffer.size();
}
+/// Closes the RTP channel.
+///
+
+void QXmppRtpChannel::close()
+{
+ d->outgoingTimer->stop();
+ QIODevice::close();
+}
+
/// Processes an incoming RTP packet.
///
/// \param ba
diff --git a/src/QXmppRtpChannel.h b/src/QXmppRtpChannel.h
index 5f74c401..881b31df 100644
--- a/src/QXmppRtpChannel.h
+++ b/src/QXmppRtpChannel.h
@@ -74,6 +74,7 @@ public:
/// \cond
qint64 bytesAvailable() const;
+ void close();
bool isSequential() const;
qint64 pos() const;
bool seek(qint64 pos);