Skip to content

Commit 0c968c0

Browse files
committed
mqtt: Fix falsy messages not being sent
1 parent e02f7b3 commit 0c968c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mqtt.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Client extends interfaces.MessagingClient
105105
handlers = @subscribers[topic]
106106

107107
debug 'message', handlers.length, msg != null
108-
return if not msg or not handlers
108+
return if not handlers
109109
out =
110110
data: msg
111111
mqtt: message

0 commit comments

Comments
 (0)