Skip to content

Commit

Permalink
fixes #397 - GatewayServer no longer ignores port
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet-irsn authored and bartdag committed Jun 24, 2020
1 parent 3745e49 commit 4152353
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Chris Kanich <ckanich@uic.edu>
Abdeali Kothari <abdealikothari@gmail.com>
Scott Lewis <scottslewis@gmail.com>
Chetan Narsude <@243826>
Yann Richet <yann.richet@irsn.fr>
Josh Rosen <rosenville@gmail.com>
Isaac Sánchez Barrera <isaac@isb1009.es>
David C. Sterratt <david.c.sterratt@ed.ac.uk>
Expand Down
2 changes: 1 addition & 1 deletion py4j-java/src/main/java/py4j/GatewayServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ public static void main(String[] args) {
boolean enableAuth = false;
String usage = "usage: [--die-on-broken-pipe] [--enable-auth] [port]";

for (int i = 0; i < args.length - 1; i++) {
for (int i = 0; i < args.length; i++) {
String opt = args[i];
if (opt.equals("--die-on-broken-pipe")) {
dieOnBrokenPipe = true;
Expand Down

0 comments on commit 4152353

Please sign in to comment.