Skip to content

Commit a7c5b44

Browse files
committed
unblock dispatch
1 parent b01fe9c commit a7c5b44

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ios/accessibility/accessibility_control.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ func (a *ControlInterface) Move(ctx context.Context, direction MoveDirection) (A
259259
log.Info("before changed")
260260

261261
resp, err := a.awaitHostInspectorCurrentElementChanged(ctx)
262-
log.Info("awaitHostInspectorCurrentElementChanged response:", resp)
263262
if err != nil {
264263
return AXElementData{}, err
265264
}

ios/dtx_codec/channel.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ func (d *Channel) Dispatch(msg Message) {
158158
log.Trace("Dispatching:", msg.Payload[0].(string))
159159
if v, ok := d.registeredMethods[msg.Payload[0].(string)]; ok {
160160
d.mutex.Unlock()
161-
v <- msg
161+
select {
162+
case v <- msg:
163+
default:
164+
log.Warnf("Dropped method invocation '%s': receiver not available", msg.Payload[0].(string))
165+
}
162166
return
163167
}
164168
}

0 commit comments

Comments
 (0)