chiark / gitweb /
disobedience more robust against server restart
[disorder] / lib / eclient.c
index 5e6cd6fa46b697e9568ae007fc2e96f3cac0b72c..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 */
@@ -1231,4 +1233,3 @@ fill-column:79
 indent-tabs-mode:nil
 End:
 */
-/* arch-tag:61ONz2p/LWaDRnToGI2+fg */