[Bug]Streams can be send without any target player

Started by habi, Nov 23, 2022, 07:22 AM

Previous topic - Next topic

habi

Description
The Stream class is not throwing error when its function SendStream is called with a null player.

Reproducible
Always

What you were doing when the bug happened
I had a piece of code to send data streams to player and obtain report from them. I restarted server and when the function was called from Server console with FindPlayer function as one of the arguments, nothing happened. Then i understood that no player was connected. So this class is not throwing error.

What you think caused the bug
Stream class not checking inside, if player is not null

Sebastian

Doesn't it actually send the data to all players?
I might be mistaken though.