summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/AimOscar/proto.cpp')
-rw-r--r--protocols/AimOscar/proto.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/AimOscar/proto.cpp b/protocols/AimOscar/proto.cpp
index c8ea97f3d7..b79f95927c 100644
--- a/protocols/AimOscar/proto.cpp
+++ b/protocols/AimOscar/proto.cpp
@@ -81,8 +81,6 @@ CAimProto::~CAimProto()
RemoveMainMenus();
RemoveContactMenus();
- if(hDirectBoundPort)
- Netlib_CloseHandle(hDirectBoundPort);
if(hServerConn)
Netlib_CloseHandle(hServerConn);
if(hAvatarConn && hAvatarConn != (HANDLE)1)
@@ -571,7 +569,8 @@ HANDLE __cdecl CAimProto::SendFile(HANDLE hContact, const PROTOCHAR* szDescripti
}
else
{
- aim_send_file(hServerConn, seqno, detected_ip, local_port, false, ft);
+ ft->listen(this);
+ aim_send_file(hServerConn, seqno, detected_ip, ft->local_port, false, ft);
}
DBFreeVariant(&dbv);