summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-31 08:58:20 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-31 09:02:04 (GMT)
commit966571644a51763b4a8da9c2c648f25301a4fb80 (patch)
tree5abc663374c5857973376ba476b67ac5bfd4af26 /Swiften/StreamStack/WhitespacePingLayer.cpp
parent544cbf6443a8f6c075b1dd5f064c818e7505dcc1 (diff)
downloadswift-966571644a51763b4a8da9c2c648f25301a4fb80.zip
swift-966571644a51763b4a8da9c2c648f25301a4fb80.tar.bz2
Make Timer one-shot.
Diffstat (limited to 'Swiften/StreamStack/WhitespacePingLayer.cpp')
-rw-r--r--Swiften/StreamStack/WhitespacePingLayer.cpp2
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() {