try fix emitter
This commit is contained in:
parent
45574b2699
commit
69e624ffdb
|
@ -140,12 +140,15 @@ public:
|
|||
}
|
||||
|
||||
|
||||
virtual void _destroy() { DES_CHECK;
|
||||
void _destroy() { DES_CHECK;
|
||||
_isDestroyed = true;
|
||||
emit("destroy");
|
||||
// emit("destroy");
|
||||
}
|
||||
|
||||
|
||||
~EventEmitter () { _destroy(); }
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
EventEmitter () {
|
||||
|
@ -154,8 +157,6 @@ protected:
|
|||
_freeId = 0;
|
||||
}
|
||||
|
||||
virtual ~EventEmitter () { _destroy(); }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "addon-tools-raub",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"author": "Luis Blanco <raubtierxxx@gmail.com>",
|
||||
"description": "A set of extra tools for Node.js addons",
|
||||
"main": "index.js",
|
||||
|
|
Loading…
Reference in New Issue