MAP Client close connection on MNS disconnect

If the MNS connection is terminated from the client side disconnect the
corresponding MAS client.

Bug: 129908795
Test: disconnect the MAP connection from the MAS server (MNS client)
Change-Id: I39b524b2222d47a553eeaa4b9781f3200443cf8e
(cherry picked from commit ec407574bee6c1cff4228daed8b413a82ff509b3)

Merged-In: I39b524b2222d47a553eeaa4b9781f3200443cf8e
Change-Id: I71426bef61234d1f1c61dfe94f23c266ea8e8a34
diff --git a/src/com/android/bluetooth/mapclient/MnsObexServer.java b/src/com/android/bluetooth/mapclient/MnsObexServer.java
index 53cd79b..33ba1ea 100644
--- a/src/com/android/bluetooth/mapclient/MnsObexServer.java
+++ b/src/com/android/bluetooth/mapclient/MnsObexServer.java
@@ -90,6 +90,10 @@
         if (VDBG) {
             Log.v(TAG, "onDisconnect");
         }
+        MceStateMachine currentStateMachine = mStateMachineReference.get();
+        if (currentStateMachine != null) {
+            currentStateMachine.disconnect();
+        }
     }
 
     @Override