Changeset 156
- Timestamp:
- 03/08/07 19:26:44 (2 years ago)
- Files:
-
- dmp/trunk/Bridge/Bridge.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dmp/trunk/Bridge/Bridge.cs
r152 r156 101 101 /// bridge's dictionary of clients or -1 if the connect fails</returns> 102 102 public int AddServerConnection(Service theService) { 103 if (this.serverNameToIdList.ContainsKey(theService.Name)) { // Already connected 104 return -1; 105 } 103 106 try { 104 107 Client newClient = new Client(theService); … … 117 120 /// bridge's dictionary of clients or -1 if the connect fails</returns> 118 121 public int AddServerConnection(string zeroconfName) { 122 if (this.serverNameToIdList.ContainsKey(zeroconfName)) { // Already connected 123 return -1; 124 } 119 125 Dictionary<string, Service> serverList = this.getZeroconfServerList(); 120 126 if (serverList.ContainsKey(zeroconfName)) { … … 278 284 279 285 280 if (this. serverNameToIdList!= null) {286 if (this.ServerAdded != null) { 281 287 this.ServerAdded(this, new ServerStatusEventArgs(newClient.Name, true)); 282 288 }
