mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-16 12:16:11 +00:00
dropping connecting when writing fails
This commit is contained in:
@@ -180,6 +180,7 @@ func (sl *SignerListenerEndpoint) writeMessage(msg RemoteSignerMsg) (err error)
|
||||
_, err = cdc.MarshalBinaryLengthPrefixedWriter(sl.conn, msg)
|
||||
if _, ok := err.(timeoutError); ok {
|
||||
err = cmn.ErrorWrap(ErrListenerTimeout, err.Error())
|
||||
sl.dropConnection()
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user