()
| 556 | var that = this; |
| 557 | |
| 558 | function quit() { |
| 559 | that.close(function() { |
| 560 | return fn ? fn(null, {success:true}) : false; |
| 561 | }); |
| 562 | } |
| 563 | |
| 564 | // under unix, we listen for signal (that is send by daemon to notify us that its shuting down) |
| 565 | if (process.platform !== 'win32' && process.platform !== 'win64') { |