summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-15 10:13:42 -0400
committerJune McEnroe <june@causal.agency>2020-05-18 14:48:22 -0400
commit4282574c187e8ee7b0da98061a355b7c0c71b50d (patch)
tree4578a8bcf35eefb853032c340884293fe8cd9e1f
parentFix page scrolling distance for SplitLines (diff)
downloadcatgirl-4282574c187e8ee7b0da98061a355b7c0c71b50d.tar.gz
catgirl-4282574c187e8ee7b0da98061a355b7c0c71b50d.zip
Revert "Send blank line after 10 minutes idle"
This reverts commit 1d5c4a5e346f0a295818441eb37697be283130ec.

This is fixed instead by pounce using TCP keepalive.
Diffstat (limited to '')
-rw-r--r--chat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/chat.c b/chat.c
index ea6e0c4..25c0824 100644
--- a/chat.c
+++ b/chat.c
@@ -272,7 +272,7 @@ int main(int argc, char *argv[]) {
 		{ .events = POLLIN, .fd = execPipe[0] },
 	};
 	while (!self.quit) {
-		int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), 600000);
+		int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), -1);
 		if (nfds < 0 && errno != EINTR) err(EX_IOERR, "poll");
 		if (nfds > 0) {
 			if (fds[0].revents) uiRead();
@@ -281,11 +281,6 @@ int main(int argc, char *argv[]) {
 			if (fds[3].revents) execRead();
 		}
 
-		// XXX: Socket seems to just stop working when connected to something
-		// like pounce which sends no pings and there is no activity for a long
-		// time, so just send something...
-		if (!nfds) ircFormat("\r\n");
-
 		if (signals[SIGHUP]) self.quit = "zzz";
 		if (signals[SIGINT] || signals[SIGTERM]) break;
 
follow=1'>Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe