good morning!!!!

Skip to content
Snippets Groups Projects
Commit 31540103 authored by Garet Halliday's avatar Garet Halliday
Browse files

don't try to stabilize the connection if it is closed

parent 30780e20
No related branches found
No related tags found
Loading
......@@ -372,6 +372,15 @@ func (s *Server) stabilize() {
if s.readyForQuery {
return
}
select {
case <-s.closed:
// it's closed, there's nothing we can do
return
default:
// try to stabilize connection
}
//log.Println("connection is unstable, attempting to restabilize it")
if s.copying {
//log.Println("failing copy")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment