← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3318: lock when running an async call

 

------------------------------------------------------------
revno: 3318
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Tue 2013-06-25 20:04:49 +0200
message:
  lock when running an async call
modified:
  dcpp/BufferedSocket.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 'dcpp/BufferedSocket.cpp'
--- dcpp/BufferedSocket.cpp	2013-06-25 15:45:51 +0000
+++ dcpp/BufferedSocket.cpp	2013-06-25 18:04:49 +0000
@@ -454,7 +454,7 @@
 			return false;
 
 		} else if(p.first == ASYNC_CALL) {
-			if(!disconnecting) { static_cast<CallData*>(p.second.get())->f(); }
+			if(!disconnecting) { Lock l(cs); static_cast<CallData*>(p.second.get())->f(); }
 			continue;
 		}