[Modify] Replace it

This commit is contained in:
sta 2021-10-17 21:43:20 +09:00
parent 4e1a9e034d
commit d0f5e08a47

View File

@ -442,9 +442,7 @@ namespace WebSocketSharp.Server
throw new ArgumentException (msg, "path"); throw new ArgumentException (msg, "path");
} }
host = new WebSocketServiceHost<TBehavior> ( host = new WebSocketServiceHost<TBehavior> (path, initializer, _log);
path, () => new TBehavior (), initializer, _log
);
if (!_keepClean) if (!_keepClean)
host.KeepClean = false; host.KeepClean = false;