Skip to content

Commit ba0f41d

Browse files
cataliniiCatalin Toda
andauthored
Remove unlocking of other streams (#1319)
Co-authored-by: Catalin Toda <[email protected]>
1 parent c2fee8c commit ba0f41d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/stream.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,10 +1226,7 @@ int lock_streams_for_adapter(int aid) {
12261226
for (i = 0; i < MAX_STREAMS; i++)
12271227
if ((sid = get_sid_nw(i)) && sid->adapter == aid) {
12281228
mutex_lock(&sid->mutex);
1229-
if ((sid = get_sid_nw(i)) && (sid->adapter != aid))
1230-
mutex_unlock(&sid->mutex);
1231-
else
1232-
ls++;
1229+
ls++;
12331230
}
12341231
return ls;
12351232
}

0 commit comments

Comments
 (0)