you register a (local) name for your gen_server. after you start it, you cannot start another with the same name.
if you use gen_server: start_link / 3 instead, removing the first argument from your current gen_server: start_link / 4 call, you can start more than one.
butter71
source share