diff options
| author | 2013-09-19 08:08:38 +0200 | |
|---|---|---|
| committer | 2013-09-19 08:08:38 +0200 | |
| commit | 17a5fa85e2978b385448e1a16822cb31ba64e284 (patch) | |
| tree | 460f759a5a1fbaebc4bec4c073ff167112c721a6 /src/client.c | |
| parent | f631e8e055dfcdae440631902ed8a38eb5109cb8 (diff) | |
| download | usbmuxd-17a5fa85e2978b385448e1a16822cb31ba64e284.tar.gz usbmuxd-17a5fa85e2978b385448e1a16822cb31ba64e284.tar.bz2 | |
make sure usbmuxd -x does not terminate when unpaired devices are still present
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c index b2e3644..8f7d945 100644 --- a/src/client.c +++ b/src/client.c | |||
| @@ -311,11 +311,11 @@ static int start_listen(struct mux_client *client) | |||
| 311 | int count, i; | 311 | int count, i; |
| 312 | 312 | ||
| 313 | client->state = CLIENT_LISTEN; | 313 | client->state = CLIENT_LISTEN; |
| 314 | count = device_get_count(); | 314 | count = device_get_count(0); |
| 315 | if(!count) | 315 | if(!count) |
| 316 | return 0; | 316 | return 0; |
| 317 | devs = malloc(sizeof(struct device_info) * count); | 317 | devs = malloc(sizeof(struct device_info) * count); |
| 318 | count = device_get_list(devs); | 318 | count = device_get_list(0, devs); |
| 319 | 319 | ||
| 320 | // going to need a larger buffer for many devices | 320 | // going to need a larger buffer for many devices |
| 321 | uint32_t needed_buffer = count * (sizeof(struct usbmuxd_device_record) + sizeof(struct usbmuxd_header)) + REPLY_BUF_SIZE; | 321 | uint32_t needed_buffer = count * (sizeof(struct usbmuxd_device_record) + sizeof(struct usbmuxd_header)) + REPLY_BUF_SIZE; |
