+ if ( defined( $state->{_dispatch} ) && $self->create_dump ) {
+ my $type = sprintf("dump/%04d-%s-%s", $dump_nr, $sock->peerhost, $state->{_dispatch});
+ symlink $file, $type || warn "can't symlink $file -> $type: $!";
+ }
+
+ warn "## acquired state = ", dump( $state ), "\n" if $self->debug;
+
+ if ( ! defined( $state->{DeviceID} ) ) {
+ warn "## state with DeviceID, using old one...\n";
+ $state->{DeviceID} = $self->state->{DeviceID};
+ }