From fbc42b33e7df816555f37957bb5f5b7ec8ca981c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 13 Jan 2017 14:45:56 +0100 Subject: [PATCH] move abstract fuctions to end of file --- PVE/AsyncHTTPServer.pm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/PVE/AsyncHTTPServer.pm b/PVE/AsyncHTTPServer.pm index 196e0d4..eac6111 100755 --- a/PVE/AsyncHTTPServer.pm +++ b/PVE/AsyncHTTPServer.pm @@ -1636,6 +1636,12 @@ sub atfork_handler { warn $@ if $@; } +sub run { + my ($self) = @_; + + $self->{end_cond}->recv; +} + sub new { my ($this, %args) = @_; @@ -1721,6 +1727,8 @@ sub new { return $self; } +# abstract functions - subclass should overwrite/implement them + sub auth_handler { my ($self, $method, $rel_uri, $ticket, $token) = @_; @@ -1766,10 +1774,5 @@ sub remote_node_ip { # return $remip; } -sub run { - my ($self) = @_; - - $self->{end_cond}->recv; -} 1; -- 2.39.2