athieriot/grunt-hapi — pull request #7 by gspringtech (2014-06-18 04:34:43+00:00)
Title: disconnect any running processes before starting

Prior to my modification, when grunt-contrib-watch tried to run the hapi task again, an EADDRINUSE error was thrown. In the original hapi.js, "running" will always be undefined as nothing has been assigned to it.

I'm not sure why there's an array of running processes - but calling disconnect makes sense and fixes the error.