try fix emitter

This commit is contained in:
raub 2018-04-17 17:34:02 +03:00
parent 45574b2699
commit 69e624ffdb
2 changed files with 6 additions and 5 deletions

View File

@ -140,12 +140,15 @@ public:
} }
virtual void _destroy() { DES_CHECK; void _destroy() { DES_CHECK;
_isDestroyed = true; _isDestroyed = true;
emit("destroy"); // emit("destroy");
} }
~EventEmitter () { _destroy(); }
protected: protected:
EventEmitter () { EventEmitter () {
@ -154,8 +157,6 @@ protected:
_freeId = 0; _freeId = 0;
} }
virtual ~EventEmitter () { _destroy(); }
private: private:

View File

@ -1,6 +1,6 @@
{ {
"name": "addon-tools-raub", "name": "addon-tools-raub",
"version": "0.1.6", "version": "0.1.7",
"author": "Luis Blanco <raubtierxxx@gmail.com>", "author": "Luis Blanco <raubtierxxx@gmail.com>",
"description": "A set of extra tools for Node.js addons", "description": "A set of extra tools for Node.js addons",
"main": "index.js", "main": "index.js",