Make retain a optional option and default it to false.

This commit is contained in:
Koen Kanters
2019-11-06 20:30:33 +01:00
parent 23cf8eade9
commit af770acd2d
5 changed files with 10 additions and 20 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ class Controller {
}
const options = {
retain: entity.settings.retain,
retain: entity.settings.hasOwnProperty('retain') ? entity.settings.retain : false,
qos: entity.settings.hasOwnProperty('qos') ? entity.settings.qos : 0,
};