BugID:19272499:[dm]improve post reply subscribe
@@ -81,7 +81,7 @@ int dm_client_subscribe_all(char product_key[PRODUCT_KEY_MAXLEN], char device_na
res = _dm_client_subscribe_filter(uri, (char *)g_dm_client_uri_map[0].uri_name, product_key, device_name);
if (res < SUCCESS_RETURN) {
DM_free(uri);
- continue;
+ break;
}
res = dm_client_subscribe(uri, (void *)g_dm_client_uri_map[0].callback, 0);
@@ -119,12 +119,6 @@ int dm_client_subscribe_all(char product_key[PRODUCT_KEY_MAXLEN], char device_na
continue;
}
- res = _dm_client_subscribe_filter(uri, (char *)g_dm_client_uri_map[index].uri_name, product_key, device_name);
- if (res < SUCCESS_RETURN) {
- DM_free(uri);
- continue;
- }
-
res = dm_client_subscribe(uri, (void *)g_dm_client_uri_map[index].callback, &local_sub);
if (res < SUCCESS_RETURN) {
index--;
