X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=36c56bae283e89b707d27fb4c6d963445886c53f;hb=74226102118400b228618f7373137a4a01e7d85f;hp=60c8b63d999cd5051cb29cbc5c27893ed465ea2e;hpb=9ef86f499753853c3751aee7da54d186837a5161;p=quassel.git diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index 60c8b63d..36c56bae 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -208,8 +208,15 @@ void RemotePeer::close(const QString &reason) void RemotePeer::onReadyRead() { QByteArray msg; - while (readMessage(msg)) + while (readMessage(msg)) { + if (SignalProxy::current()) + SignalProxy::current()->setSourcePeer(this); + processMessage(msg); + + if (SignalProxy::current()) + SignalProxy::current()->setSourcePeer(nullptr); + } }