Files
xrdp/sesman
Liyi Meng 38c8db8293 chansrv: Reconnect ibus when the cached connection has gone stale
Fixes #3230. The static `bus` global was only ever checked for
non-NULL, not for whether the underlying connection was still alive.
If ibus disconnected (daemon restart, stale socket) or the initial
connect attempt failed, `bus` was left set to a dead/freed connection,
so every later call to xrdp_input_unicode_init() took the "already
initialized" fast path and operated on it.

- Null out bus/g_engine in the "disconnected" signal handler instead
  of leaving them dangling after g_object_unref().
- Check ibus_bus_is_connected() before trusting a cached bus, and
  tear down + reconnect if it's stale.
- Unref and clear bus on a failed connect attempt instead of leaving
  it set.
- Guard the unrefs in xrdp_input_unicode_destroy() now that bus/
  g_engine can legitimately already be NULL.
2026-08-17 08:59:18 +00:00
..
2026-04-14 15:14:20 +09:00
2026-07-01 08:51:16 +09:00
2022-04-18 09:09:46 +01:00
2022-03-15 10:45:00 +00:00
2025-03-12 11:08:03 +00:00
2025-03-12 11:08:03 +00:00
2025-03-12 10:06:24 +00:00
2023-05-02 11:55:23 +01:00