diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2014-11-20 13:29:24 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2014-11-20 16:28:55 +0100 |
commit | 617646741e6246e513849dc07ec93225dbab1b1c (patch) | |
tree | 41357e9c7b3ea3f01b5f03a07c2cf36cbf65dca9 | |
parent | ad01cacf98e48a139af9a6a70381cfe05df652c7 (diff) | |
download | nanomsg-617646741e6246e513849dc07ec93225dbab1b1c.tar.gz |
Fix termination of btcpmux state machine
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | src/transports/tcpmux/btcpmux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transports/tcpmux/btcpmux.c b/src/transports/tcpmux/btcpmux.c index 6ce671a..71f8082 100644 --- a/src/transports/tcpmux/btcpmux.c +++ b/src/transports/tcpmux/btcpmux.c @@ -227,6 +227,7 @@ static void nn_btcpmux_shutdown (struct nn_fsm *self, int src, int type, if (nn_slow (src == NN_FSM_ACTION && type == NN_FSM_STOP)) { nn_backoff_stop (&btcpmux->retry); + nn_usock_stop (&btcpmux->usock); btcpmux->state = NN_BTCPMUX_STATE_STOPPING_USOCK; } if (nn_slow (btcpmux->state == NN_BTCPMUX_STATE_STOPPING_USOCK)) { |