Use some sort of username to avoid collisions when logging into the

server.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1493 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2004-08-18 17:07:30 +00:00
parent 9a503af8de
commit 89a6c009e8
@@ -19,6 +19,8 @@ import com.samskivert.util.ConfigUtil;
import com.samskivert.util.PropertiesUtil;
import com.samskivert.util.RunAnywhere;
import com.threerings.util.Name;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.ClientObserver;
import com.threerings.presents.dobj.DObject;
@@ -98,7 +100,8 @@ public class Chooser
"No music server host specified in configuration.");
}
// establish a connection with the music server
client = new Client(new UsernamePasswordCreds(), this);
Name name = new Name(RDJPrefs.getUser());
client = new Client(new UsernamePasswordCreds(name, ""), this);
client.addClientObserver(this);
client.setServer(host, Client.DEFAULT_SERVER_PORT);
client.logon();