fixed pong with new protocol

This commit is contained in:
Jeena Paradies 2011-04-12 00:58:29 +02:00
commit 865c963ad6
19 changed files with 3974 additions and 110 deletions

View file

@ -61,10 +61,8 @@ getItem(GameToken,Ns,Key) ->
mnesia:read(data, {GameToken,Ns,Key})
end,
case mnesia:transaction(Fun) of
{atomic, []} ->
{error};
{atomic, [Ret]} ->
Ret#data.value
{atomic, []} -> {error};
{atomic, [Ret]} -> Ret#data.value
end.
length(GameToken,Ns) ->