mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Merge pull request #132 from DanAlbert/fix-radio-reservation
Ensure that allocated channels are reserved.
This commit is contained in:
commit
8a8a835a32
@ -189,6 +189,7 @@ class RadioRegistry:
|
||||
try:
|
||||
while (channel := next(allocator)) in self.allocated_channels:
|
||||
pass
|
||||
self.reserve(channel)
|
||||
return channel
|
||||
except StopIteration:
|
||||
raise OutOfChannelsError(radio)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user