diff --git a/websocket-sharp/Server/WebSocketServer.cs b/websocket-sharp/Server/WebSocketServer.cs
index 632ac34d..53dbdf16 100644
--- a/websocket-sharp/Server/WebSocketServer.cs
+++ b/websocket-sharp/Server/WebSocketServer.cs
@@ -484,13 +484,13 @@ namespace WebSocketSharp.Server
/// authenticate a client.
///
///
- /// A Func<, > delegate that
- /// references the method(s) used to find the credentials. The default value is a function that
- /// only returns .
+ /// A Func<, > delegate
+ /// that references the method(s) used to find the credentials. The default value is
+ /// .
///
public Func UserCredentialsFinder {
get {
- return _credFinder ?? (_credFinder = identity => null);
+ return _credFinder;
}
set {
@@ -620,7 +620,7 @@ namespace WebSocketSharp.Server
state => {
try {
var ctx = cl.GetWebSocketContext (null, _secure, _sslConfig, _logger);
- if (!ctx.Authenticate (_authSchemes, getRealm (), UserCredentialsFinder))
+ if (!ctx.Authenticate (_authSchemes, getRealm (), _credFinder))
return;
processRequest (ctx);