summaryrefslogtreecommitdiff
path: root/saltoqd/obexconnection.cpp
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-03-31 17:33:29 +0200
committerJavier <dev.git@javispedro.com>2015-03-31 17:33:29 +0200
commitebc496d4e8038834e68ef2069bc53a0524da2008 (patch)
tree07a5b4548a8891bbcac8e9ff1eed99110cc2120f /saltoqd/obexconnection.cpp
parenta8ba1dbd9a1d7955d4e6e66f1e8c2d874873ca01 (diff)
downloadsaltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.tar.gz
saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.zip
implement the voicecallmanager (dialer, etc.)
Diffstat (limited to 'saltoqd/obexconnection.cpp')
-rw-r--r--saltoqd/obexconnection.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/saltoqd/obexconnection.cpp b/saltoqd/obexconnection.cpp
index 2e1da56..4b34dc3 100644
--- a/saltoqd/obexconnection.cpp
+++ b/saltoqd/obexconnection.cpp
@@ -86,6 +86,14 @@ void ObexConnection::tryConnect()
void ObexConnection::handleToqConnected()
{
+ if (_socket) {
+ qDebug() << "Toq just connected but OBEX connection still active";
+ _socket->disconnectFromService();
+ if (_socket) {
+ _socket->deleteLater();
+ _socket = 0;
+ }
+ }
tryConnect();
}