mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix
This commit is contained in:
@@ -48,7 +48,7 @@ master_release(struct master * m) {
|
|||||||
int i;
|
int i;
|
||||||
for (i=0;i<REMOTE_MAX;i++) {
|
for (i=0;i<REMOTE_MAX;i++) {
|
||||||
int fd = m->remote_fd[i];
|
int fd = m->remote_fd[i];
|
||||||
if (fd < 0) {
|
if (fd >= 0) {
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
free(m->remote_addr[i]);
|
free(m->remote_addr[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user