Skip to content

Commit

Permalink
add conn error
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoLlobet committed Feb 25, 2024
1 parent a9e153f commit ff7b032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connection.zig
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ fn run(self: *@This()) noreturn {
}

if ((read_set_ptr != null) or (write_set_ptr != null)) {
var res: i16 = 0;
var res: i16 = -1;
// Sem
if (self.mutex.take(null)) |_| {
const tv = c.SlTimeval_t{ .tv_sec = 0, .tv_usec = 0 };
Expand Down Expand Up @@ -272,11 +272,11 @@ fn run(self: *@This()) noreturn {
// self.task.delayTask(10);
} else {
// Error
@breakpoint();
_ = c.printf("Select ERROR\n\r");
}

if (waiting_count > 0) {
self.task.delayTask(100);
self.task.delayTask(50);
}
} else {
// no deadlines
Expand Down

0 comments on commit ff7b032

Please sign in to comment.