mm_os 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,15 @@ Drive.prototype.start = function(opiton) {
205
205
  */
206
206
  Drive.prototype.start_after = async function(opiton) {
207
207
  var msg = null;
208
- await this.plugin.exec(null, 'start');
208
+ var list = this.plugin;
209
+ for (var i = 0; i < list.length; i++) {
210
+ var o = list[i];
211
+ if (o.config.state) {
212
+ await o.run('start');
213
+ // 等待0.5秒
214
+ await $.sleep(500);
215
+ }
216
+ }
209
217
  return msg;
210
218
  };
211
219
 
@@ -184,7 +184,9 @@ MQTT.prototype.init = function(config) {
184
184
  * @param {Object} config 配置参数
185
185
  */
186
186
  MQTT.prototype.start = function() {
187
- this.start_timer();
187
+ setTimeout(() => {
188
+ this.start_timer();
189
+ }, 2000)
188
190
  this.connecting = true;
189
191
  var err;
190
192
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {