diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-18 10:43:27 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-18 10:43:27 -0700 |
commit | 6d631217271fcdc57143a7f8e03a2595a93ab50f (patch) | |
tree | d158917f8ddd8a52073cbcd28e16c9409de26ca0 | |
parent | 69f5b46c2c30b88ee8f784163f175ef305402914 (diff) | |
download | tmwa-6d631217271fcdc57143a7f8e03a2595a93ab50f.tar.gz tmwa-6d631217271fcdc57143a7f8e03a2595a93ab50f.tar.bz2 tmwa-6d631217271fcdc57143a7f8e03a2595a93ab50f.tar.xz tmwa-6d631217271fcdc57143a7f8e03a2595a93ab50f.zip |
Don't break dyingv14.4.18
-rw-r--r-- | src/mmo/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mmo/socket.cpp b/src/mmo/socket.cpp index ef70b67..1e294bd 100644 --- a/src/mmo/socket.cpp +++ b/src/mmo/socket.cpp @@ -362,6 +362,8 @@ void delete_session(Session *s) { if (!s) return; + // this needs to be before the fd_max-- + s->func_delete(s); io::FD fd = s->fd; // If this was the highest fd, decrease it @@ -371,8 +373,6 @@ void delete_session(Session *s) fd_max--; readfds.clr(fd); { - s->func_delete(s); - s->rdata.delete_(); s->wdata.delete_(); s->session_data.reset(); |