Skip to content

Commit bc6e103

Browse files
authored
Update generator.h
1 parent 452102c commit bc6e103

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nodepp/generator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ namespace nodepp { namespace _promise_ {
7474
template< class T, class U, class V >
7575
coEmit( ptr_t<bool> state, const T& func, const U& res, const V& rej ){
7676
gnStart
77-
func( res, rej ); while( *state!=0 ) { coNext; }
77+
func( res, rej ); while( *state==1 ) { coNext; }
7878
gnStop
7979
}
8080

8181
template< class T, class U >
8282
coEmit( ptr_t<bool> state, const T& func, const U& res ){
8383
gnStart
84-
func( res ); while( *state!=0 ) { coNext; }
84+
func( res ); while( *state==1 ) { coNext; }
8585
gnStop
8686
}
8787

@@ -346,4 +346,4 @@ namespace nodepp { namespace _poll_ {
346346

347347
}}
348348
#undef NODEPP_GENERATOR
349-
#endif
349+
#endif

0 commit comments

Comments
 (0)