[Modify] Polish it

This commit is contained in:
sta 2017-08-27 14:39:37 +09:00
parent a882669fcb
commit 53af874011

View File

@ -2244,13 +2244,12 @@ namespace WebSocketSharp
}
}
// As server, used to broadcast
// As server
internal void Send (
Opcode opcode, Stream stream, Dictionary<CompressionMethod, Stream> cache
)
{
lock (_forSend) {
try {
Stream found;
if (!cache.TryGetValue (_compression, out found)) {
found = stream.Compress (_compression);
@ -2262,10 +2261,6 @@ namespace WebSocketSharp
send (opcode, found, _compression != CompressionMethod.None);
}
catch (Exception ex) {
_logger.Error (ex.ToString ());
}
}
}
#endregion