File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1969,6 +1969,7 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp timeout) {
1969
1969
JanetAsyncStatus status3 = JANET_ASYNC_STATUS_NOT_DONE ;
1970
1970
JanetAsyncStatus status4 = JANET_ASYNC_STATUS_NOT_DONE ;
1971
1971
state -> event = pfd ;
1972
+ JanetStream * stream = state -> stream ;
1972
1973
if (mask & POLLOUT )
1973
1974
status1 = state -> machine (state , JANET_ASYNC_EVENT_WRITE );
1974
1975
if (mask & POLLIN )
@@ -1983,7 +1984,6 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp timeout) {
1983
1984
status4 == JANET_ASYNC_STATUS_DONE )
1984
1985
janet_unlisten (state , 0 );
1985
1986
/* Close the stream if requested and no more listeners are left */
1986
- JanetStream * stream = state -> stream ;
1987
1987
if ((stream -> flags & JANET_STREAM_TOCLOSE ) && !stream -> state ) {
1988
1988
janet_stream_close (stream );
1989
1989
}
You can’t perform that action at this time.
0 commit comments