AuthManager
- Changed the `User[string]` to `User*[string]` - Updated `getUser(string)` to use the new `User*[string]`
This commit is contained in:
parent
ebd2df7af7
commit
8a7e70e2a9
|
@ -147,7 +147,7 @@ public class AuthManager
|
|||
* ChannelManager code to do that
|
||||
*
|
||||
*/
|
||||
private User[string] users;
|
||||
private User*[string] users;
|
||||
private Mutex usersLock;
|
||||
|
||||
private this(AuthProvider provider)
|
||||
|
@ -163,7 +163,7 @@ public class AuthManager
|
|||
// Lock
|
||||
this.usersLock.lock();
|
||||
|
||||
foundUser = username in this.users;
|
||||
foundUser = this.users[username];
|
||||
|
||||
// Unlock
|
||||
this.usersLock.unlock();
|
||||
|
|
Loading…
Reference in New Issue