Skip to content

Commit

Permalink
Updated pomelo-rpc
Browse files Browse the repository at this point in the history
This commit was the result of a squash with other commit:
- Added preStop to remote

Signed-off-by: Alexandre Barbosa <[email protected]>
  • Loading branch information
Andre Hahn authored and henrod committed Mar 26, 2020
1 parent d0360c5 commit f214510
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/components/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f214510

Please sign in to comment.