common: Set sourcePeer() also for internal (mono) connections
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 26 Mar 2018 22:04:01 +0000 (00:04 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Mar 2018 20:18:29 +0000 (22:18 +0200)
commitf65431d2916386b93bf3c991578997203dfbc64d
tree1b3f67b403e70b5e5ce718f21661f75a00fae885
parent9f91e0dd3c4eb5c2e2dedfc8d36a068d433d51b1
common: Set sourcePeer() also for internal (mono) connections

So far, SignalProxy::sourcePeer() was only set while processing
messages from remote peers. Set this also for internal connections.

Also remove InternalPeer's special-casing for in-thread communication,
as the two connected peers always live in different threads anyways.

Closes GH-345.
src/common/internalpeer.cpp