Merge "Fix flaky media key event related CTS tests" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7feac4ed47
@@ -404,7 +404,7 @@ public class MediaSession2 implements AutoCloseable {
|
|||||||
mCallback.onPostConnect(MediaSession2.this, controllerInfo);
|
mCallback.onPostConnect(MediaSession2.this, controllerInfo);
|
||||||
connected = true;
|
connected = true;
|
||||||
} finally {
|
} finally {
|
||||||
if (!connected) {
|
if (!connected || isClosed()) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "Rejecting connection or notifying that session is closed"
|
Log.d(TAG, "Rejecting connection or notifying that session is closed"
|
||||||
+ ", controllerInfo=" + controllerInfo);
|
+ ", controllerInfo=" + controllerInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user