chiark / gitweb /
disobedience more robust against server restart
[disorder] / lib / eclient.c
index 971dc4c1e4623b9ca7488588fe109d0d98da3a72..519e6038b04eecf4022caf0b7c010d97e7e9777e 100644 (file)
@@ -546,8 +546,10 @@ static void read_input(disorder_eclient *c) {
     if(c->state > state_connecting)
       consume(&c->input, (nl - c->input.vec) + 1);
   }
-  if(c->eof)
+  if(c->eof) {
     comms_error(c, "reading from %s: server disconnected", c->ident);
+    c->authenticated = 0;
+  }
 }
 
 /* called with a line that has just been read */