ewenig/node-mpdsocket — pull request #2 by thedjinn (2011-11-06 08:21:26+00:00)
Title: allow multiple sessions

The connection state of the mpd object is currently placed in its prototype. This means that all instances of the class share the same state and that has unexpected effects when creating two or more instances of the class.

I have moved the declaration of the state properties to the constructor so that two concurrent mpd connections work without any problems.