zeromq / chumak

Pure Erlang implementation of ZeroMQ Message Transport Protocol.
Mozilla Public License 2.0
197 stars 47 forks source link

typo in src/chumak_router.erl? #2

Closed neildunbar closed 7 years ago

neildunbar commented 7 years ago

Hi there,

I think that line 97 in src/chumak_router.erl:

    NewLBs = chumak_lb:delete(LBs, PeerPid),

is supposed to be

    NewLBs = chumak_lbs:delete(LBs, PeerPid),

With the existing version, a client dropping its connection to the router causes a :lists.delete exception, but with the modified version, it works just fine.

Cheers,

Neil

drozzy commented 7 years ago

Thanks!