Changeset 104
- Timestamp:
- 03/01/07 13:36:35 (2 years ago)
- Files:
-
- dmp/trunk/Bridge/Bridge.cs (modified) (1 diff)
- dmp/trunk/daap-sharp/BridgeDatabase.cs (modified) (1 diff)
- dmp/trunk/daap-sharp/Client.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dmp/trunk/Bridge/Bridge.cs
r100 r104 60 60 //lib.name = newClient.Name; 61 61 //lib = db.addLibrary(lib); 62 this.clientList.Add(newClient.Id, newClient); 62 if(!clientList.ContainsKey(newClient.Id)) 63 this.clientList.Add(newClient.Id, newClient); 63 64 64 65 newClient.Login(); // Passwords are for wimps dmp/trunk/daap-sharp/BridgeDatabase.cs
r103 r104 262 262 command.CommandText = "SELECT id FROM libraries WHERE name=\"" + name + "\""; 263 263 reader = command.ExecuteReader(); 264 reader.Read(); 264 265 int libid = reader.GetInt32(0); 265 266 reader.Dispose(); dmp/trunk/daap-sharp/Client.cs
r103 r104 125 125 serverInfo = ServerInfo.FromNode (node); 126 126 127 /*int libraryId = theData.getRemoteLibraryId(this.Name);128 if(libraryId == -1){ */127 int libraryId = theData.getRemoteLibraryId(this.Name); 128 if(libraryId == -1){ 129 129 //Puts this instance of the client in the SQLite database 130 130 theData.addLibrary(this); 131 /*}131 } 132 132 else 133 this.Id = libraryId; */133 this.Id = libraryId; 134 134 } 135 135
