Created
October 27, 2013 19:38
-
-
Save Sar777/7186941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/shared/ObjectUpdateTaskBase.h b/src/shared/ObjectUpdateTaskBase.h | |
index bfb1323..50aeb5a 100644 | |
--- a/src/shared/ObjectUpdateTaskBase.h | |
+++ b/src/shared/ObjectUpdateTaskBase.h | |
@@ -46,7 +46,10 @@ template <class T> class ObjectUpdateRequest : public ACE_Method_Request | |
virtual int call() | |
{ | |
- m_obj.Update(m_diff); | |
+ if (!m_obj.IsBroken()) | |
+ m_obj.Update(m_diff); | |
+ else | |
+ m_obj.ForceUnload(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment