1
0
Fork 0

Fixes logic bug in sanity check

This commit is contained in:
Lars Windolf 2022-05-11 23:01:27 +02:00 committed by Frédéric Guillot
parent 8e6babe5d4
commit 0014aac201

View file

@ -301,7 +301,7 @@ func checkAndSimplifyTags(addTags []Stream, removeTags []Stream) (map[StreamType
for _, s := range addTags {
switch s.Type {
case ReadStream:
if _, ok := tags[ReadStream]; ok {
if _, ok := tags[KeptUnreadStream]; ok {
return nil, fmt.Errorf(KeptUnread + " and " + Read + " should not be supplied simultaneously")
}
tags[ReadStream] = true