diff options
author | Rastislav Szabo <raszabo@cisco.com> | 2018-01-04 08:43:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2018-01-04 08:43:47 +0000 |
commit | 8b44355205182f6042b0691fa31fb8aafcefb42d (patch) | |
tree | a9cae772d5a74a4d052aa60750a437961b9551ea /adapter/mock | |
parent | 0036cf1dc22600c744c10ef14f6f633d93f7b5a9 (diff) | |
parent | d86cd12b17106b6c0dfc7424ba4d11d5dbd8253e (diff) |
Merge "Mock Adapter: Switch back to handlers once the queue is empty."
Diffstat (limited to 'adapter/mock')
-rw-r--r-- | adapter/mock/mock_adapter.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/adapter/mock/mock_adapter.go b/adapter/mock/mock_adapter.go index af54ced..d8a80d6 100644 --- a/adapter/mock/mock_adapter.go +++ b/adapter/mock/mock_adapter.go @@ -261,6 +261,11 @@ func (a *VppAdapter) SendMsg(clientID uint32, data []byte) error { } if len(replies) > 0 { replies = []api.Message{} + if len(replyHandlers) > 0 { + // Switch back to handlers once the queue is empty to revert back + // the fallthrough effect. + mode = useReplyHandlers + } return nil } |