Commit bb9151c
committed
Fix message queue re-queue loop in Task.ask()
When the queue had messages during an ask operation, Task.ask() would call
submitUserMessage() which posts an 'invoke: sendMessage' to the webview.
However, since sendingDisabled is true during ask operations, the webview
would re-queue the message, creating an infinite loop.
Fixed by directly calling setMessageResponse() when processing queued
messages, bypassing the webview round-trip and immediately satisfying the
pending ask operation.1 parent 88b5d66 commit bb9151c
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
849 | | - | |
850 | | - | |
| 848 | + | |
| 849 | + | |
851 | 850 | | |
852 | 851 | | |
853 | 852 | | |
| |||
0 commit comments