Skip to content

Commit

Permalink
server : allow_reuse_address
Browse files Browse the repository at this point in the history
smh
  • Loading branch information
mos9527 committed Nov 21, 2021
1 parent f63dc65 commit 2c14c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggpo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_player_by_username(self,username):

def bind_and_active(self,address_tuple):
super().__init__(address_tuple)
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.allow_reuse_address = True
return True

def boardcast(self,to,*args):
Expand Down

0 comments on commit 2c14c57

Please sign in to comment.