summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGemini/Job.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGemini/Job.cpp')
-rw-r--r--Userland/Libraries/LibGemini/Job.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGemini/Job.cpp b/Userland/Libraries/LibGemini/Job.cpp
index e7c2f20eca..bd0dfa5db3 100644
--- a/Userland/Libraries/LibGemini/Job.cpp
+++ b/Userland/Libraries/LibGemini/Job.cpp
@@ -110,7 +110,7 @@ void Job::on_socket_connected()
auto read_size = 64 * KiB;
auto payload = receive(read_size);
- if (!payload) {
+ if (payload.is_empty()) {
if (eof()) {
finish_up();
return IterationDecision::Break;