Browse Source

Test

etomic
jl777 7 years ago
parent
commit
95e64aa9c4
  1. 6
      crypto777/nanosrc/transports/ws/cws.c

6
crypto777/nanosrc/transports/ws/cws.c

@ -329,7 +329,11 @@ static void nn_cws_handler (struct nn_fsm *self, int src, int type,
struct nn_cws *cws;
cws = nn_cont (self, struct nn_cws, fsm);
printf("cws_handler src.%d type.%d state.%d\n",src,type,cws->state);
int32_t rc = 0;
if ( type == 2 && cws->state == 3 )
rc = nn_pipebase_start (&sws->pipebase);
printf("cws_handler src.%d type.%d state.%d rc.%d\n",src,type,cws->state,rc);
switch (cws->state) {
/******************************************************************************/

Loading…
Cancel
Save