@@ -210,11 +210,6 @@ void cleanup_file_resources(const std::string& device_identifier, const std::str
210
210
AFCConnectionClose (afc_connection_to_close);
211
211
devices[device_identifier].apps_cache .erase (application_identifier);
212
212
}
213
-
214
- if (devices[device_identifier].services .count (kHouseArrest ))
215
- {
216
- devices[device_identifier].services .erase (kHouseArrest );
217
- }
218
213
}
219
214
220
215
void cleanup_file_resources (const std::string& device_identifier)
@@ -982,13 +977,13 @@ void get_application_infos(std::string device_identifier, std::string method_id)
982
977
983
978
CFStringRef cf_app_type_value = create_CFString (" User" );
984
979
const void *client_opts_values_arr[] = { cf_app_type_value, cf_return_attributes_array };
985
- CFDictionaryRef clinet_opts_dict = CFDictionaryCreate (NULL , client_opts_keys_arr, client_opts_values_arr, 2 , NULL , NULL );
980
+ CFDictionaryRef client_opts_dict = CFDictionaryCreate (NULL , client_opts_keys_arr, client_opts_values_arr, 2 , NULL , NULL );
986
981
987
982
CFStringRef cf_command_key = create_CFString (" Command" );
988
983
CFStringRef cf_client_options_key = create_CFString (" ClientOptions" );
989
984
const void *keys_arr[] = { cf_command_key, cf_client_options_key };
990
985
CFStringRef cf_command_value = create_CFString (" Browse" );
991
- const void *values_arr[] = { cf_command_value, clinet_opts_dict };
986
+ const void *values_arr[] = { cf_command_value, client_opts_dict };
992
987
CFDictionaryRef dict_command = CFDictionaryCreate (NULL , keys_arr, values_arr, 2 , NULL , NULL );
993
988
994
989
send_con_message (serviceInfo.connection , dict_command);
@@ -998,7 +993,7 @@ void get_application_infos(std::string device_identifier, std::string method_id)
998
993
CFRelease (cf_app_type_key);
999
994
CFRelease (cf_return_attrs_key);
1000
995
CFRelease (cf_app_type_value);
1001
- CFRelease (clinet_opts_dict );
996
+ CFRelease (client_opts_dict );
1002
997
CFRelease (cf_command_key);
1003
998
CFRelease (cf_client_options_key);
1004
999
CFRelease (cf_command_value);
@@ -1007,7 +1002,7 @@ void get_application_infos(std::string device_identifier, std::string method_id)
1007
1002
std::vector<json> livesync_app_infos;
1008
1003
while (true )
1009
1004
{
1010
- std::map<std::string, boost::any> dict = receive_con_message (serviceInfo.connection );
1005
+ std::map<std::string, boost::any> dict = receive_con_message (serviceInfo.connection , device_identifier, method_id, 10 );
1011
1006
PRINT_ERROR_AND_RETURN_IF_FAILED_RESULT (dict.count (kErrorKey ), boost::any_cast<std::string>(dict[kErrorKey ]).c_str (), device_identifier, method_id);
1012
1007
if (dict.empty () || (dict.count (kStatusKey ) && has_complete_status (dict)))
1013
1008
{
@@ -1181,7 +1176,7 @@ void await_notification_response(std::string device_identifier, AwaitNotificatio
1181
1176
PRINT_ERROR_AND_RETURN_IF_FAILED_RESULT (connection == nullptr , invalid_connection_error_message.c_str (), device_identifier, method_id);
1182
1177
1183
1178
ServiceInfo currentNotificationProxy = devices[device_identifier].services [kNotificationProxy ];
1184
- std::map<std::string, boost::any> response = receive_con_message (connection);
1179
+ std::map<std::string, boost::any> response = receive_con_message (connection, device_identifier, method_id, await_notification_response_info. timeout );
1185
1180
if (response.size ())
1186
1181
{
1187
1182
PRINT_ERROR_AND_RETURN_IF_FAILED_RESULT (response.count (kErrorKey ), boost::any_cast<std::string>(response[kErrorKey ]).c_str (), device_identifier, method_id);
0 commit comments