summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-18 21:52:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-18 21:52:06 +0000
commit47e5e82a35999401cc7676cd19a4b8b289a2024c (patch)
tree20449be9036d3d2503b49f4c2ba481be99261c66 /protocols/AimOscar/thread.cpp
parentbb7bf61220abb44c385deabda02daed66e9e2389 (diff)
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@1030 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/thread.cpp')
-rw-r--r--protocols/AimOscar/thread.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/AimOscar/thread.cpp b/protocols/AimOscar/thread.cpp
index 724b6ae2aa..e8044f90d2 100644
--- a/protocols/AimOscar/thread.cpp
+++ b/protocols/AimOscar/thread.cpp
@@ -1,6 +1,6 @@
/*
Plugin of Miranda IM for communicating with users of the AIM protocol.
-Copyright (c) 2008-2009 Boris Krasnovskiy
+Copyright (c) 2008-2012 Boris Krasnovskiy
Copyright (C) 2005-2006 Aaron Myles Landwehr
This program is free software; you can redistribute it and/or
@@ -31,6 +31,7 @@ void __cdecl CAimProto::accept_file_thread(void* param)//buddy sending file
LOG("Connected to proxy ip that buddy specified.");
ft->hConn = hConn;
ForkThread(&CAimProto::aim_proxy_helper, ft);
+ ft->stop_listen();
}
}
else if (ft->me_force_proxy) //we are forcing proxy
@@ -42,6 +43,7 @@ void __cdecl CAimProto::accept_file_thread(void* param)//buddy sending file
ft->requester = true;
ft->hConn = hConn;
ForkThread(&CAimProto::aim_proxy_helper, ft);
+ ft->stop_listen();
}
}
else
@@ -55,6 +57,7 @@ void __cdecl CAimProto::accept_file_thread(void* param)//buddy sending file
ft->hConn = hConn;
aim_file_ad(hServerConn, seqno, ft->sn, ft->icbm_cookie, false, ft->max_ver);
ForkThread(&CAimProto::aim_dc_helper, ft);
+ ft->stop_listen();
}
else if (ft->sending)
{
@@ -64,13 +67,15 @@ void __cdecl CAimProto::accept_file_thread(void* param)//buddy sending file
ft->hConn = hConn;
ft->requester = true;
ForkThread(&CAimProto::aim_proxy_helper, ft);
+ ft->stop_listen();
}
}
else
{
LOG("Failed to connect to buddy- asking buddy to connect to us.");
+ ft->listen(this);
ft->requester = true;
- aim_send_file(hServerConn, seqno, detected_ip, local_port, false, ft);
+ aim_send_file(hServerConn, seqno, detected_ip, ft->local_port, false, ft);
return;
}
}