summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/SluiftClient.cpp')
-rw-r--r--Sluift/SluiftClient.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Sluift/SluiftClient.cpp b/Sluift/SluiftClient.cpp
index e8c43c9..5243ed0 100644
--- a/Sluift/SluiftClient.cpp
+++ b/Sluift/SluiftClient.cpp
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2013-2017 Isode Limited. 2 * Copyright (c) 2013-2018 Isode Limited.
3 * All rights reserved. 3 * All rights reserved.
4 * See the COPYING file for more information. 4 * See the COPYING file for more information.
5 */ 5 */
@@ -48,6 +48,9 @@ SluiftClient::~SluiftClient() {
48} 48}
49 49
50void SluiftClient::connect() { 50void SluiftClient::connect() {
51 if (client->isActive()) {
52 throw Lua::Exception("Client is already connecting or connected");
53 }
51 rosterReceived = false; 54 rosterReceived = false;
52 blockListReceived = false; 55 blockListReceived = false;
53 disconnectedError = boost::optional<ClientError>(); 56 disconnectedError = boost::optional<ClientError>();