Commit 38d434e6 authored by Robin Obůrka's avatar Robin Obůrka Committed by Robin Obůrka
Browse files

network: Split some input test to separate method

parent 3e85d0a1
......@@ -108,7 +108,7 @@ class Socket:
self.setup_done = False
def add_resource(self, resource):
def check_resource(self, resource):
if !=
raise SockConfigError("Putting bad resource to socket")
......@@ -127,6 +127,10 @@ class Socket:
if resource in self.resources:
raise SockConfigError("Resource duplication")
def add_resource(self, resource):
self.setup_done = True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment