From f214510b5877187868898d2844e9b1c189c4a63e Mon Sep 17 00:00:00 2001 From: Andre Hahn Date: Thu, 1 Feb 2018 11:56:53 -0200 Subject: [PATCH] Updated pomelo-rpc This commit was the result of a squash with other commit: - Added preStop to remote Signed-off-by: Alexandre Barbosa --- lib/components/remote.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/components/remote.js b/lib/components/remote.js index 5264774b9..599e7760d 100644 --- a/lib/components/remote.js +++ b/lib/components/remote.js @@ -62,6 +62,11 @@ Component.prototype.start = function(cb) { process.nextTick(cb); }; +Component.prototype.preStop = function(cb) { + this.remote.preStop(); + process.nextTick(cb); +}; + /** * Remote component lifecycle function * diff --git a/package.json b/package.json index 61671368a..a83aa3661 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "cliff": "0.1.8", "mkdirp": "0.3.3", "pomelo-loader": "0.0.7", - "pomelo-rpc": "topfreegames/pomelo-rpc#1.0.5-new-logger", + "pomelo-rpc": "topfreegames/pomelo-rpc#1.0.8-new-logger", "pomelo-protocol": "0.1.6", "pomelo-logger": "topfreegames/pomelo-logger#0.1.9", "pomelo-scheduler": "topfreegames/pomelo-scheduler#new-pomelo-logger",