patch 0e5aa389db90fbbc6e6b9515acd3aa92c94731a7
Author: Enrique D. Bosch <presidev@AT@gmail.com>
Date: Tue Sep 4 19:32:19 CEST 2018
* Move non-logout code to cleanup function
diff -rN -u old-idlebiff/idlebiff new-idlebiff/idlebiff
--- old-idlebiff/idlebiff 2024-11-22 15:51:27.323682325 +0100
+++ new-idlebiff/idlebiff 2024-11-22 15:51:27.323682325 +0100
@@ -334,16 +334,8 @@
proc logout con \
{
- variable ::shared::ka
- variable ::shared::idle
variable ::shared::conf
- after cancel $ka
- if { $idle } \
- {
- set idle 0
- exit_idle $con
- }
fileevent $con readable { parse_logout $con }
after ${conf(timeout_logout)}000 \
{
@@ -355,6 +347,15 @@
proc cleanup con \
{
+ variable ::shared::ka
+ variable ::shared::idle
+
+ after cancel $ka
+ if { $idle } \
+ {
+ set idle 0
+ exit_idle $con
+ }
logout $con
}