+7
-1
Diff
round #0
+7
-1
src/main.zig
+7
-1
src/main.zig
···
146
146
147
147
if (flags.connect != null) {
148
148
reconnect: while (true) {
149
-
client = try .init();
149
+
client = SaprusClient.init() catch |err| switch (err) {
150
+
error.NoInterfaceFound => {
151
+
try init.io.sleep(.fromMilliseconds(100), .boot);
152
+
continue :reconnect;
153
+
},
154
+
else => |e| return e,
155
+
};
150
156
defer client.deinit();
151
157
log.debug("Starting connection", .{});
152
158
History
1 round
0 comments
zambyte.robbyzambito.me
submitted
#0
1 commit
expand
collapse
Keep retrying if there is no interface
1/1 success
expand
collapse
expand 0 comments
pull request successfully merged