summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 14:57:17 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 14:57:17 +0300
commitfa75afdf7d9b9036dcaa373e01250cb68176488b (patch)
treee3f9d683b1425bdb198fcba2bde21abb59234e3b /src/ui/documentwidget.c
parent66d425de8597cd9f88a2657505b7098d02cc9617 (diff)
Cancel GmRequest from the main thread
Doing it in the SDL timer thread causes mutex lockups.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 9c8c93c6..8cc47e2a 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -792,6 +792,11 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
792 postCommandf_App("document.changed url:%s", cstr_String(d->url)); 792 postCommandf_App("document.changed url:%s", cstr_String(d->url));
793 return iFalse; 793 return iFalse;
794 } 794 }
795 else if (equal_Command(cmd, "gmrequest.timeout") &&
796 pointerLabel_Command(cmd, "request") == d->request) {
797 cancel_GmRequest(d->request);
798 return iFalse;
799 }
795 else if (equal_Command(cmd, "document.request.cancelled") && document_Command(cmd) == d) { 800 else if (equal_Command(cmd, "document.request.cancelled") && document_Command(cmd) == d) {
796 postCommand_App("navigate.back"); 801 postCommand_App("navigate.back");
797 return iFalse; 802 return iFalse;