Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Clean-up servers when closing LiveDevelopment #10453

Merged
merged 4 commits into from
May 14, 2015

Conversation

sebaslv
Copy link
Contributor

@sebaslv sebaslv commented Jan 23, 2015

Fix #10374 LiveDevMultiBrowser fails to connect when a local server is configured.

Servers registered by LiveDevelopment are now being cleaned-up when closing the session since LiveDevServerManager retrieves an instance of UserServer to LiveDevMultiBrowser in this case.
In order to be able to remove registered servers, a new LiveDevServerManager.removeServer(provider) operation was added and LiveDevServerManager.registerServer() now returns an object handler to be used for removing it. Registrations of servers at LiveDevelopment were moved from init() to open() and clean-up of servers take place at LiveDevelopment.close().

Fix for adobe#10374. LiveDevMultiBrowser can't load when a local server is configured.
Servers registered by LiveDevelopment are now being cleaned-up when closing the
session.
@nethip
Copy link
Contributor

nethip commented Apr 3, 2015

@busykai Would you mind taking a look at this PR?

@busykai
Copy link
Contributor

busykai commented Apr 3, 2015

@nethip, sure! will do (next week, most likely).

@@ -188,6 +188,11 @@ define(function LiveDevelopment(require, exports, module) {
* @type {BaseServer}
*/
var _server;

/**
* Handlers of registered servers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mark it @private.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Handlers" => "Handles"

@busykai
Copy link
Contributor

busykai commented Apr 19, 2015

@sebaslv, done with the review. Just these minor comments.

@sebaslv
Copy link
Contributor Author

sebaslv commented Apr 24, 2015

@kai, I've already included those changes. Thanks!

@busykai
Copy link
Contributor

busykai commented May 13, 2015

someone named 'kai' got surprised. :)

@busykai
Copy link
Contributor

busykai commented May 14, 2015

LGTM. Merging.

busykai added a commit that referenced this pull request May 14, 2015
Clean-up servers when closing LiveDevelopment
@busykai busykai merged commit 76838a4 into adobe:master May 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Live Preview MultiBrowser fails to connect in this case
3 participants