mirror of
https://github.com/janet-lang/janet
synced 2025-11-06 10:33:03 +00:00
More complete fix with some debugging tools.
This commit is contained in:
@@ -405,7 +405,7 @@ static void janet_stream_marshal(void *p, JanetMarshalContext *ctx) {
|
||||
#ifdef JANET_WINDOWS
|
||||
/* TODO - ref counting to avoid situation where a handle is closed or GCed
|
||||
* while in transit, and it's value gets reused. DuplicateHandle does not work
|
||||
* for network sockets, and in general for winsock it is better to nipt duplicate
|
||||
* for network sockets, and in general for winsock it is better to not duplicate
|
||||
* unless there is a need to. */
|
||||
HANDLE duph = INVALID_HANDLE_VALUE;
|
||||
if (s->flags & JANET_STREAM_SOCKET) {
|
||||
|
||||
Reference in New Issue
Block a user