added stash

This commit is contained in:
Jeena Paradies 2011-04-11 10:54:18 +02:00
parent 0718031e22
commit da67b0a977
5 changed files with 192 additions and 73 deletions

View file

@ -58,7 +58,8 @@ handle_info({tcp_closed, Socket}, State) ->
%% and when it does, we accept the connection.
handle_info(timeout, LSock) ->
{ok, Sock} = gen_tcp:accept(LSock),
spawn(ggs_player, start_link, [Sock]),
ggs_player:start(Sock),
erlang:display("handle_info"),
{noreply, LSock, 0}.
terminate(normal, _State) ->