diff options
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/conn.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/conn.h b/executor/conn.h index 19026748d..9371ddaee 100644 --- a/executor/conn.h +++ b/executor/conn.h @@ -93,10 +93,10 @@ private: static int Connect(const char* addr, const char* ports) { int port = atoi(ports); - if (port == 0) - failmsg("failed to parse manager port", "port=%s", ports); if (!strcmp(addr, "stdin")) return STDIN_FILENO; + if (port == 0) + failmsg("failed to parse manager port", "port=%s", ports); sockaddr_in saddr4 = {}; saddr4.sin_family = AF_INET; saddr4.sin_port = htons(port); |
