Skip to content

Commit 277f3f8

Browse files
committed
# Bug fix: protocolsFromBits returns wrong value.
1 parent e171474 commit 277f3f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/azure-media/src/main/java/com/microsoft/windowsazure/services/media/models/AssetDeliveryProtocol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static EnumSet<AssetDeliveryProtocol> protocolsFromBits(int bits) {
7373
.of(AssetDeliveryProtocol.None);
7474

7575
for (AssetDeliveryProtocol p : AssetDeliveryProtocol.values()) {
76-
if ((bits & p.getFlagValue()) != 0) {
76+
if ((bits & p.getFlagValue()) != p.getFlagValue()) {
7777
perms.remove(AssetDeliveryProtocol.None);
7878
perms.add(p);
7979
}

0 commit comments

Comments
 (0)