Loading services/backup/java/com/android/server/backup/UserBackupManagerService.java +9 −3 Original line number Diff line number Diff line Loading @@ -3907,14 +3907,20 @@ public class UserBackupManagerService { } int operationType; TransportConnection transportConnection = null; try { operationType = getOperationTypeFromTransport( mTransportManager.getTransportClientOrThrow(transport, /* caller */ "BMS.beginRestoreSession")); transportConnection = mTransportManager.getTransportClientOrThrow( transport, /* caller */"BMS.beginRestoreSession"); operationType = getOperationTypeFromTransport(transportConnection); } catch (TransportNotAvailableException | TransportNotRegisteredException | RemoteException e) { Slog.w(TAG, "Failed to get operation type from transport: " + e); return null; } finally { if (transportConnection != null) { mTransportManager.disposeOfTransportClient(transportConnection, /* caller */"BMS.beginRestoreSession"); } } synchronized (this) { Loading Loading
services/backup/java/com/android/server/backup/UserBackupManagerService.java +9 −3 Original line number Diff line number Diff line Loading @@ -3907,14 +3907,20 @@ public class UserBackupManagerService { } int operationType; TransportConnection transportConnection = null; try { operationType = getOperationTypeFromTransport( mTransportManager.getTransportClientOrThrow(transport, /* caller */ "BMS.beginRestoreSession")); transportConnection = mTransportManager.getTransportClientOrThrow( transport, /* caller */"BMS.beginRestoreSession"); operationType = getOperationTypeFromTransport(transportConnection); } catch (TransportNotAvailableException | TransportNotRegisteredException | RemoteException e) { Slog.w(TAG, "Failed to get operation type from transport: " + e); return null; } finally { if (transportConnection != null) { mTransportManager.disposeOfTransportClient(transportConnection, /* caller */"BMS.beginRestoreSession"); } } synchronized (this) { Loading