diff options
Diffstat (limited to 'hidd/main.c')
-rw-r--r-- | hidd/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hidd/main.c b/hidd/main.c index b1fe2cb4..4ececd5a 100644 --- a/hidd/main.c +++ b/hidd/main.c @@ -438,12 +438,18 @@ static void do_connect(int ctl, bdaddr_t *src, bdaddr_t *dst, uint8_t subclass, goto connect; case SERIAL_PORT_SVCLASS_ID: - epox_presenter(src, dst, channel); + if (epox_presenter(src, dst, channel) < 0) { + close(ctl); + exit(1); + } break; case HEADSET_SVCLASS_ID: case HANDSFREE_SVCLASS_ID: - headset_presenter(src, dst, channel); + if (headset_presenter(src, dst, channel) < 0) { + close(ctl); + exit(1); + } break; } |