version 1.36, 2010/04/17 23:25:16 |
version 1.37, 2010/06/21 01:27:46 |
|
|
|
|
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { |
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { |
s = ARRAY_ITEM(&sessions, i); |
s = ARRAY_ITEM(&sessions, i); |
if (s != NULL && session_has(s, w)) |
if (s != NULL && session_has(s, w) != NULL) |
server_status_session(s); |
server_status_session(s); |
} |
} |
} |
} |
|
|
|
|
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { |
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { |
s = ARRAY_ITEM(&sessions, i); |
s = ARRAY_ITEM(&sessions, i); |
if (s == NULL || !session_has(s, w)) |
if (s == NULL || session_has(s, w) == NULL) |
continue; |
continue; |
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) { |
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) { |
if (session_detach(s, wl)) { |
if (session_detach(s, wl)) { |
|
|
* Can't use session_detach as it will destroy session |
* Can't use session_detach as it will destroy session |
* if this makes it empty. |
* if this makes it empty. |
*/ |
*/ |
session_alert_cancel(dst, dstwl); |
dstwl->flags &= ~WINLINK_ALERTFLAGS; |
winlink_stack_remove(&dst->lastw, dstwl); |
winlink_stack_remove(&dst->lastw, dstwl); |
winlink_remove(&dst->windows, dstwl); |
winlink_remove(&dst->windows, dstwl); |
|
|