ggs_connection / connection modules do not exist, removing them from send calls

This commit is contained in:
Jonatan Pålsson 2011-02-04 16:35:36 +01:00
parent 386e386ecf
commit cb53cd6908

View file

@ -131,23 +131,23 @@ do_JSCall(Socket, Data, State) ->
Ret = js_runner:call(JSVM, "userCommand", Ret = js_runner:call(JSVM, "userCommand",
[list_to_binary(Command), [list_to_binary(Command),
list_to_binary(Parameter)]), list_to_binary(Parameter)]),
connection:send(Socket, "RefID", "JS says: ", Ret), send(Socket, "RefID", "JS says: ", Ret),
[]; [];
% Set the new state to the reference generated, and JSVM associated % Set the new state to the reference generated, and JSVM associated
{hello} -> {hello} ->
Client = getRef(), Client = getRef(),
connection:send(Socket, Client, "__ok_hello"), send(Socket, Client, "__ok_hello"),
{Client, JSVM}; {Client, JSVM};
{echo, RefID, _, MSG} -> {echo, RefID, _, MSG} ->
connection:send(Socket, RefID, "Your VM is ", getJSVM(RefID, State)), send(Socket, RefID, "Your VM is ", getJSVM(RefID, State)),
[]; [];
{crash, Zero} -> {crash, Zero} ->
10/Zero; 10/Zero;
{vms} -> {vms} ->
connection:send(Socket, "RefID", State); send(Socket, "RefID", State);
% Set the new state to [] % Set the new state to []
Other -> Other ->
ggs_connection:send(Socket, "RefID", "__error"), send(Socket, "RefID", "__error"),
[] []
end, end,
% Return the new state % Return the new state