Skip to content

Commit

Permalink
Drop connections that didn't recently reply to a PING.
Browse files Browse the repository at this point in the history
  • Loading branch information
mornfall committed Jul 25, 2022
1 parent 14a2611 commit e6dae40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/bufferproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <IrcBufferModel>
#include <IrcConnection>
#include <IrcBuffer>
#include <IrcLagTimer>

IRC_USE_NAMESPACE

Expand Down Expand Up @@ -154,6 +155,9 @@ void BufferProxyModel::insertConnection(int index, IrcConnection* connection)
connect(model, &IrcBufferModel::aboutToBeAdded, this, &BufferProxyModel::bufferAboutToBeAdded);
connect(model, &IrcBufferModel::aboutToBeRemoved, this, &BufferProxyModel::bufferAboutToBeRemoved);

IrcLagTimer* lag = new IrcLagTimer(model);
lag->setConnection(connection, true);

ZncManager* znc = new ZncManager(model);
znc->setModel(model);

Expand Down

0 comments on commit e6dae40

Please sign in to comment.