allow reuse

This commit is contained in:
j 2023-10-12 11:54:33 +01:00
parent 10faed82e4
commit e4dd22b0bd

View file

@ -146,6 +146,7 @@ def main():
player = get_player(fullscreen=not args.window) player = get_player(fullscreen=not args.window)
server = ThreadingUDPServer(('0.0.0.0', args.port), Handler) server = ThreadingUDPServer(('0.0.0.0', args.port), Handler)
server.allow_reuse_address = True
server.player = Player(peer, player, args.playlist, args.prefix) server.player = Player(peer, player, args.playlist, args.prefix)
player.register_key_binding('q', server.q_binding) player.register_key_binding('q', server.q_binding)