[Modify] Polish it
This commit is contained in:
parent
a882669fcb
commit
53af874011
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user