Skip to content

Commit 20db102

Browse files
committed
The guard networkOperation == nil else { return } on line 265 is was blocking rapid page navigation (opening a thread and then mashing next-next-next while it's loading). Replacing it with cancelling the in-flight operation and nilling it out restores the old behavior where you could tap forward/back rapidly.
1 parent 55e523d commit 20db102

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

App/View Controllers/Posts/PostsPageViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ final class PostsPageViewController: ViewController {
203203
flagRequest?.cancel()
204204
flagRequest = nil
205205

206-
guard networkOperation == nil else { return }
206+
networkOperation?.cancel()
207+
networkOperation = nil
207208

208209
// prevent white flash caused by webview being opaque during refreshes
209210
if darkMode {

0 commit comments

Comments
 (0)