mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 08:30:26 +00:00
Register stream on unmarshal
This commit is contained in:
parent
c9897f99c3
commit
12630d3e54
@ -451,6 +451,7 @@ static void *janet_stream_unmarshal(JanetMarshalContext *ctx) {
|
|||||||
#else
|
#else
|
||||||
p->handle = (JanetHandle) janet_unmarshal_int(ctx);
|
p->handle = (JanetHandle) janet_unmarshal_int(ctx);
|
||||||
#endif
|
#endif
|
||||||
|
janet_register_stream(p);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user