crosswalk-project/crosswalk — pull request #1542 by pozdnyakov (2014-01-27 11:40:52+00:00)
Title: [Application] Handle multiple attempts to terminate an application

Before this change multiple invokes of Application::Terminate() method broke
the app termination logic in case "OnSuspend" event handler was registered for
the app. Fixed now by introducing a dedicted "IsTerminating" check to
Application::Terminate() method.