Closed JordanMilne closed 9 years ago
Nice catch! I've been doing some behind the scenes changes related to IPC lately and haven't tested any live builds. Looks like it was caused by a sloppy copy and paste.
Fix incoming.
Fixed in 74ed054de1d2542debc0d6690d3977015c92e709.
JumbleConnection.addTCPMessageHandlers(mModelHandler)
gets called in bothJumbleService.connect()
andJumbleService.connectionSynchronized()
, puttingJumbleService.mModelHandler
inJumbleConnection.mTCPHandlers
twice, and causing the handler to be called twice for every message.The easiest way to repro this is with text messages in Plumble
master
. For each one you receive, you'll have two in the chat view.If the handler needs to be added in both places, checking if a handler is in
JumbleConnection.mTCPHandlers
before actually adding it inJumbleConnection.addTCPMessageHandlers()
might work.