From 95e64aa9c4ce856449047c996afb9f620f4b7c91 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Oct 2017 01:54:42 +0300 Subject: [PATCH] Test --- crypto777/nanosrc/transports/ws/cws.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { /******************************************************************************/