mm_os 4.1.0 → 4.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +10 -14
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mm_os",
3
3
  "description": "MM_OS服务端架构,用于快速构建应用程序,支持网站建设、小程序后台、AI应用、物联网(IOT/AIOT)、游戏服务端等多种场景。",
4
- "version": "4.1.0",
4
+ "version": "4.1.1",
5
5
  "main": "index.js",
6
6
  "keywords": [
7
7
  "AI",
package/server.js CHANGED
@@ -278,18 +278,14 @@ Server.prototype.init = async function () {
278
278
  * 初始化
279
279
  */
280
280
  Server.prototype._init = async function () {
281
- try {
282
- // 初始化工具
283
- this._initTool();
284
- // 初始化基础设施
285
- await this._initBase();
286
- // 初始化模块
287
- await this._initMod();
288
- // 统一处理错误
289
- this._initErrorRun();
290
- } catch (error) {
291
- this.log('error', '实例化失败:', error);
292
- }
281
+ // 初始化工具
282
+ this._initTool();
283
+ // 初始化基础设施
284
+ this._initBase();
285
+ // 初始化模块
286
+ this._initMod();
287
+ // 统一处理错误
288
+ this._initErrorRun();
293
289
  };
294
290
 
295
291
  /**
@@ -345,7 +341,7 @@ Server.prototype._initTool = function () {
345
341
  /**
346
342
  * 初始化模块
347
343
  */
348
- Server.prototype._initMod = async function () {
344
+ Server.prototype._initMod = function () {
349
345
  // 模板引擎
350
346
  require('mm_tpl');
351
347
  const Http = require('mm_https').Http;
@@ -389,7 +385,7 @@ Server.prototype._start = async function () {
389
385
  * 运行模块
390
386
  */
391
387
  Server.prototype._runMod = async function () {
392
- await Promise.all([,
388
+ await Promise.all([
393
389
  // 启动TCP
394
390
  this.tpc.run(),
395
391
  // 启动软件