X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=bc9f9d0197d21c0342afb2a65f18cfeddfc2b27e;hp=60c8b63d999cd5051cb29cbc5c27893ed465ea2e;hb=a65f42197839da536975b3e2858eedcef420035f;hpb=9ef86f499753853c3751aee7da54d186837a5161 diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index 60c8b63d..bc9f9d01 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-2019 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); + } }