Skip to content

Commit

Permalink
mention that plugin call must be the first
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Apr 4, 2022
1 parent 1fc9699 commit 546c10e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ func (s *Session) dispatch(msg *ClientComMessage) {
now := types.TimeNow()
atomic.StoreInt64(&s.lastAction, now.UnixNano())

// This should be the first block here, before any other checks.
var resp *ServerComMessage
if msg, resp = pluginFireHose(s, msg); resp != nil {
// Plugin provided a response. No further processing is needed.
Expand Down

0 comments on commit 546c10e

Please sign in to comment.