Skip to content

Commit

Permalink
Merge pull request #445 from thomas-brandeho/master
Browse files Browse the repository at this point in the history
Prevent auto_register in Server from being wrongly set to False
  • Loading branch information
comrumino committed May 2, 2021
2 parents 690f0be + fef92f7 commit e0370d4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rpyc/utils/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ def _listen(self):

def _register(self):
if self.auto_register:
self.auto_register = False
spawn(self._bg_register)

def start(self):
Expand Down Expand Up @@ -565,7 +564,6 @@ class GeventServer(Server):

def _register(self):
if self.auto_register:
self.auto_register = False
gevent.spawn(self._bg_register)

def _accept_method(self, sock):
Expand Down

0 comments on commit e0370d4

Please sign in to comment.