catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
328 stars 81 forks source link

Fix target device_id when other device is detected #1186

Closed lars18th closed 3 weeks ago

lars18th commented 3 weeks ago

When the enforced/stored device_id is already used, use another one free.

lars18th commented 3 weeks ago

Hi @Jalle19 ,

One edge case requires to be targeted: when the enforced/stored value is already used. In this case, the next free value requires to be used. This simple patch solves this case.

Please, merge it. And sorry for the error.