Bladeren bron

优化调整

master
AICells 4 jaren geleden
bovenliggende
commit
34bad3a44a
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. +5
    -0
      src/gen_srv.erl

+ 5
- 0
src/gen_srv.erl Bestand weergeven

@ -108,6 +108,7 @@
-callback handleCall(Request :: term(), State :: term(), From :: {pid(), Tag :: term()}) -> -callback handleCall(Request :: term(), State :: term(), From :: {pid(), Tag :: term()}) ->
ok | ok |
{reply, Reply :: term()} |
{reply, Reply :: term(), NewState :: term()} | {reply, Reply :: term(), NewState :: term()} |
{reply, Reply :: term(), NewState :: term(), Actions :: actions()} | {reply, Reply :: term(), NewState :: term(), Actions :: actions()} |
{noreply, NewState :: term()} | {noreply, NewState :: term()} |
@ -743,6 +744,10 @@ handleCR(Parent, Name, Module, HibernateAfterTimeout, Debug, Timers, CurState, R
case Result of case Result of
ok -> ok ->
receiveIng(Parent, Name, Module, HibernateAfterTimeout, Debug, Timers, CurState, false); receiveIng(Parent, Name, Module, HibernateAfterTimeout, Debug, Timers, CurState, false);
{reply, Reply} ->
reply(From, Reply),
NewDebug = ?SYS_DEBUG(Debug, Name, {out, Reply, From, CurState}),
receiveIng(Parent, Name, Module, HibernateAfterTimeout, NewDebug, Timers, CurState, false);
{noreply, NewState} -> {noreply, NewState} ->
receiveIng(Parent, Name, Module, HibernateAfterTimeout, Debug, Timers, NewState, false); receiveIng(Parent, Name, Module, HibernateAfterTimeout, Debug, Timers, NewState, false);
{reply, Reply, NewState} -> {reply, Reply, NewState} ->

Laden…
Annuleren
Opslaan