diff options
author | Javier <dev.git@javispedro.com> | 2015-03-31 17:33:29 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-03-31 17:33:29 +0200 |
commit | ebc496d4e8038834e68ef2069bc53a0524da2008 (patch) | |
tree | 07a5b4548a8891bbcac8e9ff1eed99110cc2120f /saltoqd/obexconnection.cpp | |
parent | a8ba1dbd9a1d7955d4e6e66f1e8c2d874873ca01 (diff) | |
download | saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.tar.gz saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.zip |
implement the voicecallmanager (dialer, etc.)
Diffstat (limited to 'saltoqd/obexconnection.cpp')
-rw-r--r-- | saltoqd/obexconnection.cpp | 8 |
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(); } |