diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-31 08:58:20 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-31 09:02:04 (GMT) |
commit | 966571644a51763b4a8da9c2c648f25301a4fb80 (patch) | |
tree | 5abc663374c5857973376ba476b67ac5bfd4af26 /Swiften/StreamStack/WhitespacePingLayer.cpp | |
parent | 544cbf6443a8f6c075b1dd5f064c818e7505dcc1 (diff) | |
download | swift-966571644a51763b4a8da9c2c648f25301a4fb80.zip swift-966571644a51763b4a8da9c2c648f25301a4fb80.tar.bz2 |
Make Timer one-shot.
Diffstat (limited to 'Swiften/StreamStack/WhitespacePingLayer.cpp')
-rw-r--r-- | Swiften/StreamStack/WhitespacePingLayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/StreamStack/WhitespacePingLayer.cpp b/Swiften/StreamStack/WhitespacePingLayer.cpp index 2adfcea..a99f300 100644 --- a/Swiften/StreamStack/WhitespacePingLayer.cpp +++ b/Swiften/StreamStack/WhitespacePingLayer.cpp @@ -29,7 +29,9 @@ void WhitespacePingLayer::handleDataRead(const ByteArray& data) { } void WhitespacePingLayer::handleTimerTick() { + timer->stop(); onWriteData(" "); + timer->start(); } void WhitespacePingLayer::setActive() { |