luigiplr / node-hotspot

Manage, Add & Remove infrastructure mode hotspots on Windows & OSX, WIP: Linux
GNU General Public License v3.0
27 stars 10 forks source link

hotspot.enable stops node execution :S #3

Closed kingio closed 7 years ago

kingio commented 7 years ago

¡Thank you so much for creating this!

O.S: Windows 10 hotspot version: 0.1.7

If i place this in my node app, after it successfully creates the hotspot, stops/exits the node execution:

var hotspotSettings = {
        ssid: 'test',
        password: '123456',
        force: true, // (optional)  if hosting a network already turn it off and run ours.
    }
hotspot.enable(hotspotSettings)
    .then(function() {
        console.log('Hotspot Enabled')
    })
    .catch(function(e) {
        Console.log('Something went wrong; Perms?', e)
    });
C:\Users\me\Desktop\wifi>node main.js
Configuring hotspot with SSID: test
Starting hotspot
Hotspot started!
ICS Configuration successful!
Hotspot Enabled

C:\Users\me\Desktop\wifi>

As you can see, after enabled message, node stops as if i had pressed CTRL + C ¿Any idea on why is this happening?