Merge pull request #2274 from esdrubal/udpclientreceive
[mono.git] / mcs / class / System / System.Diagnostics / Process.cs
index b46bc936c1df2df53242753e43da03d6a2b0aa72..8c6fa0dcf4fb77a97882d0bba91e216deb500b15 100644 (file)
@@ -1288,7 +1288,8 @@ namespace System.Diagnostics {
                                async_error.AsyncWaitHandle.WaitOne ();
 #endif // MONO_FEATURE_PROCESS_START
 
-                       OnExited ();
+                       if (EnableRaisingEvents)
+                               OnExited ();
 
                        return true;
                }