peer: properly clean up chanMsgStreams map on readHandler exit
This commit ensures that all references within the chanMsgStreams are all removed and deleted when the readHandler exits. This ensures that all objects don’t have extra references, and will properly be garbage collected.
This commit is contained in:
1 file changed
+3
-1