Make sure we don't spam log with failed send() messages if we
already have detected a network failure. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1711 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
d18def31e3
commit
7d2f65002a
16
tcp.c
16
tcp.c
@ -3,7 +3,7 @@
|
||||
Protocol services - TCP layer
|
||||
Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 1999-2008
|
||||
Copyright 2005-2011 Peter Astrand <astrand@cendio.se> for Cendio AB
|
||||
Copyright 2012 Henrik Andersson <hean01@cendio.se> for Cendio AB
|
||||
Copyright 2012-2013 Henrik Andersson <hean01@cendio.se> for Cendio AB
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -140,11 +140,14 @@ tcp_send(STREAM s)
|
||||
}
|
||||
else
|
||||
{
|
||||
error("SSL_write: %d (%s)\n", ssl_err, TCP_STRERROR);
|
||||
g_network_error = True;
|
||||
#ifdef WITH_SCARD
|
||||
scard_unlock(SCARD_LOCK_TCP);
|
||||
#endif
|
||||
if (g_network_error == True)
|
||||
return;
|
||||
|
||||
error("SSL_write: %d (%s)\n", ssl_err, TCP_STRERROR);
|
||||
g_network_error = True;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -161,11 +164,14 @@ tcp_send(STREAM s)
|
||||
}
|
||||
else
|
||||
{
|
||||
error("send: %s\n", TCP_STRERROR);
|
||||
g_network_error = True;
|
||||
#ifdef WITH_SCARD
|
||||
scard_unlock(SCARD_LOCK_TCP);
|
||||
#endif
|
||||
if (g_network_error == True)
|
||||
return;
|
||||
|
||||
error("send: %s\n", TCP_STRERROR);
|
||||
g_network_error = True;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user