bluez5: don't try to acquire if we are getting errors

If transport goes into error state too often, fail instead of trying to
acquire it again.

This avoids getting into a tight acquire->fail->reacquire loop.
This commit is contained in:
Pauli Virtanen 2023-03-18 14:48:16 +02:00
parent 397059017b
commit 13a9964a71
3 changed files with 41 additions and 8 deletions

View file

@ -601,6 +601,8 @@ struct spa_bt_transport {
int acquire_refcount;
bool acquired;
bool keepalive;
int error_count;
uint64_t last_error_time;
int fd;
uint16_t read_mtu;
uint16_t write_mtu;