agnat/node_mdns

Closing a browser

Closed this issue · 1 comments

Sorry for another opening issue / request. Since the browser seems to dereference open file descriptors only if the main process (the executing node program) is closed. Is there another way to close a browser or force him to close all open file handles? (I tried to re-create the browser in intervals and overwrite the former browser instance, but it resulted in a file descriptor leakage that crashed the node program at some point)

Forget about it. Browser instance has a stop() method which perfectly solves the problem, since it closes the file descriptors.