mirror of
https://git.robbyzambito.me/zaprus
synced 2026-03-22 05:13:43 +00:00
Compare commits
4 Commits
f202410f0d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| cbbd710b9d | |||
| 974baf0274 | |||
| e744a44317 | |||
| d1ca448835 |
@@ -1,6 +1,6 @@
|
||||
when:
|
||||
- event: ["push", "pull_request", "manual"]
|
||||
branch: ["dev", "master", "test*"]
|
||||
branch: ["dev", "master"]
|
||||
tag: ["v*"]
|
||||
|
||||
engine: "nixery"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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", .{});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user