projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2419 from esdrubal/xmlsubclassel
[mono.git]
/
mcs
/
class
/
System.ServiceModel
/
System.ServiceModel.Channels.Http
/
HttpReplyChannel.cs
diff --git
a/mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpReplyChannel.cs
b/mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpReplyChannel.cs
index 03e7cad1f1c4f7eff0afaab6e7c41ebd1801f848..098b622aa836a1ca86cba5c3fd4e1872fbc0aee8 100644
(file)
--- a/
mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpReplyChannel.cs
+++ b/
mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpReplyChannel.cs
@@
-104,12
+104,15
@@
namespace System.ServiceModel.Channels.Http
}
bool close_started;
}
bool close_started;
+ object close_lock = new object ();
protected override void OnClose (TimeSpan timeout)
{
protected override void OnClose (TimeSpan timeout)
{
- if (close_started)
- return;
- close_started = true;
+ lock (close_lock) {
+ if (close_started)
+ return;
+ close_started = true;
+ }
DateTime start = DateTime.Now;
// FIXME: consider timeout
DateTime start = DateTime.Now;
// FIXME: consider timeout