Skip to content

Commit

Permalink
oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Jan 26, 2024
1 parent 01ca237 commit 40188e9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bun.js/ipc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const NamedPipeIPCData = struct {
current_payload_len: usize = 0,

pub fn processSend(this: *NamedPipeIPCData) void {
const bytes = this.outgoing.list.slice();
const bytes = this.outgoing.list.slice()[this.outgoing.cursor..];
log("processSend {d}", .{bytes.len});
if (bytes.len == 0) return;

Expand Down Expand Up @@ -519,10 +519,6 @@ fn NewNamedPipeIPCHandler(comptime Context: type) type {
while (true) {
const result = decodeIPCMessage(slice, globalThis) catch |e| switch (e) {
error.NotEnoughBytes => {
// copy the remaining bytes to the start of the buffer
bun.copy(u8, this.ipc.incoming.ptr[0..slice.len], slice);
this.ipc.incoming.len = @truncate(slice.len);
log("hit NotEnoughBytes2", .{});
return;
},
error.InvalidFormat => {
Expand Down

0 comments on commit 40188e9

Please sign in to comment.