@@ -798,19 +798,8 @@ define(function LiveDevelopment(require, exports, module) {
798798 * the status accordingly.
799799 */
800800 function cleanup ( ) {
801- // Need to do this in order to trigger the corresponding CloseLiveBrowser cleanups required on
802- // the native Mac side
803- var closeDeferred = ( brackets . platform === "mac" ) ? NativeApp . closeLiveBrowser ( ) : $ . Deferred ( ) . resolve ( ) ;
804- closeDeferred . done ( function ( ) {
805- _setStatus ( STATUS_INACTIVE , reason || "explicit_close" ) ;
806- deferred . resolve ( ) ;
807- } ) . fail ( function ( err ) {
808- if ( err ) {
809- reason += " (" + err + ")" ;
810- }
811- _setStatus ( STATUS_INACTIVE , reason || "explicit_close" ) ;
812- deferred . resolve ( ) ;
813- } ) ;
801+ _setStatus ( STATUS_INACTIVE , reason || "explicit_close" ) ;
802+ deferred . resolve ( ) ;
814803 }
815804
816805 if ( _openDeferred ) {
@@ -1044,7 +1033,7 @@ define(function LiveDevelopment(require, exports, module) {
10441033 if ( id === Dialogs . DIALOG_BTN_OK ) {
10451034 // User has chosen to reload Chrome, quit the running instance
10461035 _setStatus ( STATUS_INACTIVE ) ;
1047- _close ( )
1036+ NativeApp . closeLiveBrowser ( )
10481037 . done ( function ( ) {
10491038 browserStarted = false ;
10501039 window . setTimeout ( function ( ) {
@@ -1059,17 +1048,7 @@ define(function LiveDevelopment(require, exports, module) {
10591048 _openDeferred . reject ( "CLOSE_LIVE_BROWSER" ) ;
10601049 } ) ;
10611050 } else {
1062- _close ( )
1063- . done ( function ( ) {
1064- browserStarted = false ;
1065- _openDeferred . reject ( "CANCEL" ) ;
1066- } )
1067- . fail ( function ( err ) {
1068- // Report error?
1069- _setStatus ( STATUS_ERROR ) ;
1070- browserStarted = false ;
1071- _openDeferred . reject ( "CLOSE_LIVE_BROWSER" ) ;
1072- } ) ;
1051+ _openDeferred . reject ( "CANCEL" ) ;
10731052 }
10741053 } ) ;
10751054
0 commit comments