File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1515 },
1616 "require" : {
1717 "php" : " >=5.3" ,
18- "react/event-loop" : " ~0.4.0|~0.3.0" ,
18+ "clue/qdatastream" : " ^0.6" ,
19+ "react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3" ,
1920 "react/promise" : " ~2.0|~1.1" ,
2021 "react/socket" : " ^1.0 || ^0.8 || ^0.7" ,
21- "react/stream" : " ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.6" ,
22- "clue/qdatastream" : " ^0.6"
22+ "react/stream" : " ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.6"
2323 },
2424 "require-dev" : {
2525 "clue/block-react" : " ^1.1" ,
Original file line number Diff line number Diff line change 127127
128128 $ client ->writeClientInit ();
129129
130- $ client ->on ('close ' , function () use (&$ timer ) {
130+ $ client ->on ('close ' , function () use (&$ timer, $ loop ) {
131131 var_dump ('CLOSED ' );
132- $ timer -> cancel ( );
132+ $ loop -> cancelTimer ( $ timer );
133133 });
134134
135135 $ timer = $ loop ->addTimer (60.0 * 60 , function ($ timer ) use ($ client ) {
You can’t perform that action at this time.
0 commit comments