4 Commits

Author SHA1 Message Date
cbbd710b9d Release 0.2.1 2026-02-04 20:39:59 -05:00
974baf0274 Keep retrying if there is no interface 2026-02-05 01:38:24 +00:00
e744a44317 Remove test branch trigger 2026-02-04 12:18:45 -05:00
d1ca448835 Release v0.2.0 2026-02-01 21:02:39 -05:00
3 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
when:
- event: ["push", "pull_request", "manual"]
branch: ["dev", "master", "test*"]
branch: ["dev", "master"]
tag: ["v*"]
engine: "nixery"

View File

@@ -10,7 +10,7 @@
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
.version = "0.0.0",
.version = "0.2.1",
// Together with name, this represents a globally unique package
// identifier. This field is generated by the Zig toolchain when the

View File

@@ -146,7 +146,13 @@ pub fn main(init: std.process.Init) !void {
if (flags.connect != null) {
reconnect: while (true) {
client = try .init();
client = SaprusClient.init() catch |err| switch (err) {
error.NoInterfaceFound => {
try init.io.sleep(.fromMilliseconds(100), .boot);
continue :reconnect;
},
else => |e| return e,
};
defer client.deinit();
log.debug("Starting connection", .{});