Skip to content

Commit

Permalink
more windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Oct 24, 2024
1 parent cada8ea commit 2bcddc3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/exes/server/Reloader.zig
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pub fn onInputChange(self: *Reloader, path: []const u8, name: []const u8) void {
log.err("unable to run zig build: {s}", .{@errorName(err)});
return;
};

defer {
self.gpa.free(result.stdout);
self.gpa.free(result.stderr);
Expand Down
11 changes: 11 additions & 0 deletions src/exes/server/watcher/zinereload.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,14 @@ function zineConnect() {
}

zineConnect();



// Keep sending messages to circumvent an issue related to windows
// networking, see https://github.com/ziglang/zig/issues/14233
function zinewin() {
if (socket.readyState === WebSocket.OPEN) {
socket.send("https://github.com/ziglang/zig/issues/14233");
}
}
setInterval(zinewin, 100);

0 comments on commit 2bcddc3

Please sign in to comment.