summaryrefslogtreecommitdiff
path: root/src/nav.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-08-12 21:25:19 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-08-12 21:25:19 -0400
commit8e9290c517ce09ab83cf786a5ba424fc9e5c3f52 (patch)
treed92b024d957de43f69b0edecf1d9eedd451205ba /src/nav.c
parentb4885050a417b18a3a0185fc1f44b7cb75c35069 (diff)
Bugfix: remove the empty cache entry lingering after connection abort
Diffstat (limited to 'src/nav.c')
-rw-r--r--src/nav.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nav.c b/src/nav.c
index 1be1ba98..441d5997 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -258,6 +258,15 @@ void a_Nav_cancel_expect(BrowserWindow *bw)
}
/*
+ * Cancel the expect if 'url' matches.
+ */
+void a_Nav_cancel_expect_if_eq(BrowserWindow *bw, const DilloUrl *url)
+{
+ if (bw->nav_expecting && a_Url_cmp(url, bw->nav_expect_url) == 0)
+ a_Nav_cancel_expect(bw);
+}
+
+/*
* We have an answer! Set things accordingly.
* This function is called for root URLs only.
* Beware: this function is much more complex than it looks