Skip to content

Commit

Permalink
Use socket variable created a line earlier rather than channel.Socket
Browse files Browse the repository at this point in the history
  • Loading branch information
tstojecki committed Mar 1, 2016
1 parent 939fa5e commit ef0aeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka/IO/TcpListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public TcpListener(IActorRef selectorRouter, TcpExt tcp, IChannelRegistry channe
try
{
var socket = _channel.Socket;
bind.Options.ForEach(x => x.BeforeServerSocketBind(_channel.Socket));
bind.Options.ForEach(x => x.BeforeServerSocketBind(socket));
socket.Bind(bind.LocalAddress);
socket.Listen(bind.Backlog);
Expand Down

0 comments on commit ef0aeec

Please sign in to comment.