akhikhl/gretty — pull request #79 by saladinkzn (2014-09-25 08:36:31+00:00)
Title: Fixed ConnectException when restart was caused by Scanner

Fixing a bug reported by @elw00d :)

Scanner-triggered restart caused Runner to try to send 'restartComplete' message to status port but nobody listens to it in this case.

So I split 'restart' command into 'restart' (it will be called by Scanner) when no 'restartComplete' command will be sent and 'restartWithEvent' (it will be called by interactiveMode = 'restartOnKeyPress') with 'restartComplete' command.