Skip to content

Commit 1434ee7

Browse files
committed
More specific check for service imports vs any internal sub
Signed-off-by: Neil Twigg <[email protected]>
1 parent fbbbe28 commit 1434ee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,8 +3127,8 @@ var needFlush = struct{}{}
31273127
// deliverMsg will deliver a message to a matching subscription and its underlying client.
31283128
// We process all connection/client types. mh is the part that will be protocol/client specific.
31293129
func (c *client) deliverMsg(prodIsMQTT bool, sub *subscription, acc *Account, subject, reply, mh, msg []byte, gwrply bool) bool {
3130-
// Check sub client and check echo. Only do this if not an internal sub.
3131-
if sub.client == nil || (c == sub.client && !sub.client.echo && sub.icb == nil) {
3130+
// Check sub client and check echo. Only do this if not a service import.
3131+
if sub.client == nil || (c == sub.client && !sub.client.echo && !sub.si) {
31323132
return false
31333133
}
31343134

0 commit comments

Comments
 (0)