Commits

Roger Light committed 393c49c

Fix non-retained message delivery when subscribing to #. Thanks to Stefano Costa.

  • Participants
  • Parent commits 1f6a9fc
  • Branches 1.0.3

Comments (0)

Files changed (2)

File ChangeLog.txt

   This was preventing psk files being reloaded.
 - Clarify meaning of $SYS/broker/clients/total in mosquitto(8) man page.
 - Clarify meaning of $SYS/broker/messages/stored in mosquitto(8) man page.
+- Fix non-retained message delivery when subscribing to #.
 
 Library:
 - Fix possible AttributeError when self._sock == None in Python module.
 			if(!tokens->next){
 				_subs_process(db, branch, source_id, topic, qos, retain, stored);
 			}
-		}else if(!strcmp(branch->topic, "#") && !branch->children && (!tokens || strcmp(tokens->topic, "/"))){
+		}else if(!strcmp(branch->topic, "#") && !branch->children){
 			/* The topic matches due to a # wildcard - process the
 			 * subscriptions but *don't* return. Although this branch has ended
 			 * there may still be other subscriptions to deal with.