Permalink
Browse files

Fix interface shutdown bug.

  • Loading branch information...
1 parent f64ae39 commit 0bd0f14d91f6add5cbe2c0cfc32df40a58aeb3fc @archaelus committed Mar 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/enet_eth_iface.erl
View
@@ -117,7 +117,7 @@ handle_cast(Msg, State) ->
%% @end
%%--------------------------------------------------------------------
handle_info({Port, {exit_status, N}}, S = #state{port=Port}) ->
- {stop, {interface_shutdown, N}, S = #state{port=undefined}};
+ {stop, {interface_shutdown, N}, S#state{port=undefined}};
handle_info({Port, {data, PortPacket}}, S = #state{port=Port}) ->
case enet_tap:decode(PortPacket) of
running ->

0 comments on commit 0bd0f14

Please sign in to comment.