diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-08-12 21:25:19 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-08-12 21:25:19 -0400 |
commit | 8e9290c517ce09ab83cf786a5ba424fc9e5c3f52 (patch) | |
tree | d92b024d957de43f69b0edecf1d9eedd451205ba /src/nav.c | |
parent | b4885050a417b18a3a0185fc1f44b7cb75c35069 (diff) |
Bugfix: remove the empty cache entry lingering after connection abort
Diffstat (limited to 'src/nav.c')
-rw-r--r-- | src/nav.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |