diff options
| author | t <t@tjp.lol> | 2026-06-22 18:18:28 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-23 09:34:55 -0600 |
| commit | 538a5d926fa626a00cc3dc12c555f11f82867efd (patch) | |
| tree | 7ea3b84ea5086d67973d0b427ec7c382eb635e50 /libpanto/src/auth.zig | |
| parent | a417727810cc6722b3c82e3c9e9b46982ef40a08 (diff) | |
libpanto ponytail-audit simplifications
Diffstat (limited to 'libpanto/src/auth.zig')
| -rw-r--r-- | libpanto/src/auth.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libpanto/src/auth.zig b/libpanto/src/auth.zig index 5b65bf4..4c1723b 100644 --- a/libpanto/src/auth.zig +++ b/libpanto/src/auth.zig @@ -567,11 +567,7 @@ pub fn login( const deadline_ns = start_ns + 15 * std.time.ns_per_min; while (true) { io.sleep(.fromSeconds(@intCast(da.interval_secs)), .real) catch {}; - const result = pollOnce(arena, client, oauth, da, headers) catch |err| switch (err) { - // A transient transport hiccup mid-poll: keep waiting. - error.AuthFlowFailed => return err, - else => return err, - }; + const result = try pollOnce(arena, client, oauth, da, headers); switch (result) { .pending => {}, .done => |toks| return toks, |
