Skip to content

Commit dc4e9f2

Browse files
committed
Swapped app_id and dest_id in applicationUpdated
Trying to swap the two app_ids to fix error. Cleaned up iwdp_on_applicationUpdated()
1 parent bd1a2dc commit dc4e9f2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/ios_webkit_debug_proxy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,6 @@ rpc_status iwdp_on_applicationSentData(rpc_t rpc,
13891389

13901390
rpc_status iwdp_on_applicationUpdated(rpc_t rpc,
13911391
const char *app_id, const char *dest_id) {
1392-
fprintf(stderr, "Removing app_id: %s, adding: %s\n", app_id, dest_id);
13931392
rpc_status result = iwdp_remove_app_id(rpc, app_id);
13941393
if (result) {
13951394
// Error removing app_id

src/rpc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,11 @@ _rpc_applicationUpdated: <dict>
440440
rpc_status rpc_recv_applicationUpdated(rpc_t self, const plist_t args) {
441441
char *app_id = NULL;
442442
char *dest_id = NULL;
443-
size_t length = 0;
444443
rpc_status ret;
445444
if (!rpc_dict_get_required_string(args, "WIRHostApplicationIdentifierKey",
445+
&dest_id) &&
446+
!rpc_dict_get_required_string(args, "WIRApplicationIdentifierKey",
446447
&app_id) &&
447-
!rpc_dict_get_required_data(args, "WIRApplicationIdentifierKey",
448-
&dest_id, &length) &&
449448
!self->on_applicationUpdated(self,
450449
app_id, dest_id)) {
451450
ret = RPC_SUCCESS;

0 commit comments

Comments
 (0)