From 954157c4f89794231ccfc9909da97d26dfea5cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 16 Jul 2016 13:38:01 +0000 Subject: Omegle: Remove useless/broken send message lock; version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@17097 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/client.h | 2 -- protocols/Omegle/src/messages.cpp | 2 -- protocols/Omegle/src/proto.cpp | 3 --- protocols/Omegle/src/version.h | 2 +- 4 files changed, 1 insertion(+), 8 deletions(-) (limited to 'protocols/Omegle/src') diff --git a/protocols/Omegle/src/client.h b/protocols/Omegle/src/client.h index ee3be95567..2aae2017a8 100644 --- a/protocols/Omegle/src/client.h +++ b/protocols/Omegle/src/client.h @@ -43,7 +43,6 @@ public: { nick_ = NULL; //msgid_ = 0; - send_message_lock_ = NULL; state_ = STATE_INACTIVE; typing_ = spy_mode_ = false; @@ -72,7 +71,6 @@ public: std::string question_; ptrT nick_; - HANDLE send_message_lock_; //int msgid_; // State of client diff --git a/protocols/Omegle/src/messages.cpp b/protocols/Omegle/src/messages.cpp index b7239912a0..8cabb89dcb 100644 --- a/protocols/Omegle/src/messages.cpp +++ b/protocols/Omegle/src/messages.cpp @@ -27,8 +27,6 @@ void OmegleProto::SendMsgWorker(void *p) if (p == NULL) return; - ScopedLock s(facy.send_message_lock_); - std::string data = *(std::string*)p; delete (std::string*)p; diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index bed9cdf47a..3f464a4322 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -29,7 +29,6 @@ PROTO(proto_name, username) this->signon_lock_ = CreateMutex(NULL, FALSE, NULL); this->log_lock_ = CreateMutex(NULL, FALSE, NULL); - this->facy.send_message_lock_ = CreateMutex(NULL, FALSE, NULL); this->facy.connection_lock_ = CreateMutex(NULL, FALSE, NULL); this->events_loop_lock_ = CreateMutex(NULL, FALSE, NULL); @@ -70,12 +69,10 @@ OmegleProto::~OmegleProto() WaitForSingleObject(this->signon_lock_, IGNORE); WaitForSingleObject(this->log_lock_, IGNORE); - WaitForSingleObject(this->facy.send_message_lock_, IGNORE); WaitForSingleObject(this->events_loop_lock_, IGNORE); CloseHandle(this->signon_lock_); CloseHandle(this->log_lock_); - CloseHandle(this->facy.send_message_lock_); CloseHandle(this->events_loop_lock_); CloseHandle(this->facy.connection_lock_); } diff --git a/protocols/Omegle/src/version.h b/protocols/Omegle/src/version.h index 29432052fb..2c9507ab72 100644 --- a/protocols/Omegle/src/version.h +++ b/protocols/Omegle/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 1 #define __RELEASE_NUM 3 -#define __BUILD_NUM 0 +#define __BUILD_NUM 1 #include -- cgit v1.2.3