1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 02:23:59 +00:00

1. Fixed IPC cleanup on domain sockets for Windows

2. Fixed readableStream, so 'end' is still emitted when piped
This commit is contained in:
Bryan Roe
2019-12-04 15:00:15 -08:00
parent 0cb668d0af
commit 0f40f9092e
2 changed files with 71 additions and 23 deletions

View File

@@ -495,7 +495,8 @@ int ILibDuktape_readableStream_WriteEnd(ILibDuktape_readableStream *stream)
retVal = 0;
}
}
else if (ILibDuktape_EventEmitter_HasListeners(stream->emitter, "end") != 0)
if (ILibDuktape_EventEmitter_HasListeners(stream->emitter, "end") != 0)
{
ILibDuktape_EventEmitter_SetupEmit(stream->ctx, stream->object, "end"); // [emit][this][end]
if (duk_pcall_method(stream->ctx, 1) != 0) { ILibDuktape_Process_UncaughtException(stream->ctx); }