summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 4dbe2ee2f..da7dadb86 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -3455,6 +3455,8 @@ static int chardb_waiting_disconnect(int tid, unsigned int tick, int id, int dat
static int online_data_cleanup_sub(DBKey key, void *data, va_list ap)
{
struct online_char_data *character= (struct online_char_data*)data;
+ if (character->fd != -1)
+ return 0; //Still connected
if (character->server == -2) //Unknown server.. set them offline
set_char_offline(character->char_id, character->account_id);
if (character->server < 0)