diff --git a/crypto777/nanosrc/transports/ws/cws.c b/crypto777/nanosrc/transports/ws/cws.c index 905e90405..9de4ea5b4 100755 --- a/crypto777/nanosrc/transports/ws/cws.c +++ b/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) { /******************************************************************************/