Commits

arkdro committed e229729

close port on terminate

  • Participants
  • Parent commits 810e98e

Comments (0)

Files changed (1)

erlang/src/c_server.erl

     {noreply, St}.
 
 %-------------------------------------------------------------------
-terminate(_, _State) ->
+terminate(_, #state{port=Port}) ->
+    catch port_close(Port),
     ok.
 
 %-------------------------------------------------------------------