joyent/node — pull request #7137 by trevnorris (2014-02-17 19:11:26+00:00)
Title: domain: remove multiple of the same from stack

If a domain is active when the callback is called, then the domain is
entered. When the user manually enters a domain before the callback is
run then there will be a duplicate copy of the domain in the stack.

Instead remove to the first instance of the domain pushed to the stack.