← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3386: oops

 

------------------------------------------------------------
revno: 3386
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Wed 2013-12-11 21:05:20 +0100
message:
  oops
modified:
  build_util.py
  dcpp/Socket.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'build_util.py'
--- build_util.py	2013-12-06 23:34:21 +0000
+++ build_util.py	2013-12-11 20:05:20 +0000
@@ -209,6 +209,7 @@
             env.Glob('*.' + inc_ext),
             env.Glob('*.' + src_ext)
         )
+    # TODO using __func__ sucks; if anyone has a better idea, chip in...
     c_lib = simple_lib.__func__('h', 'c')
     cpp_lib = simple_lib.__func__('h', 'cpp')
 

=== modified file 'dcpp/Socket.cpp'
--- dcpp/Socket.cpp	2013-12-10 21:32:00 +0000
+++ dcpp/Socket.cpp	2013-12-11 20:05:20 +0000
@@ -370,7 +370,7 @@
 	}
 
 	// An IP should be set if at least one connection attempt succeeded
-	if(!ip.empty()) {
+	if(ip.empty()) {
 		throw SocketException(lastError);
 	}
 }