Do not create extended main loop for termination by |Terminate| 68/110768/2
authorYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 16 Jan 2017 03:51:12 +0000 (12:51 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Wed, 18 Jan 2017 03:41:14 +0000 (12:41 +0900)
commitef77d1d5e4c12b9a657da10cb4decb0b7d96349c
tree94accafeeffc8d27efd98fb13709b9a7bd21fde8
parent7805d199bbb9ce9065fb4f3a77180879c663f1e7
Do not create extended main loop for termination by |Terminate|

There are two types of termination sequences.

The first one is terminated by |Terminate| and another one is
terminated by |OnTerminate| triggered by application framework.

In case of termination by |OnTerminate|, app f/w emits elm_shutdown that
quits main loop so extended main loop is needed to finish termination sequence.

Btw, in case of termination by |Terminate|, app f/w does not interrupt current
main loop so it is stll alive and extended main loop is not needed.

This CL introduces not to create extended main loop for the termination
by |Terminate|.

Bug: http://suprem.sec.samsung.net/jira/browse/TWF-2804

Change-Id: I15147c9d07ec768bdb7f8acf92e18886ec2c100d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
runtime/browser/runtime.cc
runtime/browser/runtime.h
runtime/browser/web_application.cc
runtime/browser/web_application.h