]> code.citadel.org Git - citadel.git/commitdiff
* webcit.c: exit Webcit sessions semi-gracefully when the connection
authorArt Cancro <ajc@citadel.org>
Tue, 13 Jul 1999 03:31:24 +0000 (03:31 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Jul 1999 03:31:24 +0000 (03:31 +0000)
          to a Citadel server fails.

webcit/ChangeLog
webcit/webcit.c

index 1d2c4ecd81af872d57be8ce383629a9196d68e89..7b6ac85c34bda3791fbbc08a40e913dec5c02a18 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jul 12 23:30:24 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us> 
+       * webcit.c: exit Webcit sessions semi-gracefully when the connection
+         to a Citadel server fails.
+
 Sat Jul 10 17:51:39 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Recompiled the Java chat applet using a genuine JDK 1.0.2
          compiler.  This should make more browsers happy.
index c1a09098f8972700be9e9f17b8543bbceaded873..8b9fd4e247deb9931759695d9baeb4737a318366 100644 (file)
@@ -710,6 +710,10 @@ void session_loop(char *browser_host, char *user_agent)
                if (strlen(bstr("port")) > 0)
                        strcpy(c_port, bstr("port"));
                serv_sock = connectsock(c_host, c_port, "tcp");
+               if (serv_sock < 0) {
+                       do_logout();
+               }
+
                connected = 1;
                serv_gets(buf); /* get the server welcome message */
                get_serv_info(browser_host, user_agent);