Skip to content

Commit 546c10e

Browse files
committed
mention that plugin call must be the first
1 parent 1fc9699 commit 546c10e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ func (s *Session) dispatch(msg *ClientComMessage) {
466466
now := types.TimeNow()
467467
atomic.StoreInt64(&s.lastAction, now.UnixNano())
468468

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

0 commit comments

Comments
 (0)