Lock formatters instead of this.
Toss errors to the connection up the call stack.
This commit is contained in:
parent
a2582f6abe
commit
f76912a34f
7
Conn.cs
7
Conn.cs
@ -44,7 +44,7 @@ public class Conn
|
|||||||
public object recieveObject( Stream stream )
|
public object recieveObject( Stream stream )
|
||||||
{
|
{
|
||||||
object obj = null;
|
object obj = null;
|
||||||
lock( this )
|
lock( m_formatter )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ public class Conn
|
|||||||
|
|
||||||
public void send( object obj )
|
public void send( object obj )
|
||||||
{
|
{
|
||||||
lock( this )
|
lock( m_formatter )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -82,8 +82,7 @@ public class Conn
|
|||||||
catch( Exception e )
|
catch( Exception e )
|
||||||
{
|
{
|
||||||
lib.Log.warn( "Exception sending obj {0} of {1}", obj, e );
|
lib.Log.warn( "Exception sending obj {0} of {1}", obj, e );
|
||||||
//m_streamNet.Close();
|
throw;
|
||||||
//m_socket.Close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user