mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-30 16:20:40 +00:00
Fix stream not closing properly when exiting app
This commit is contained in:
parent
0b1a69a067
commit
c7d6e959e0
@ -160,7 +160,7 @@ struct x11_attr_t : public display_t {
|
||||
if(width != xattr.width || height != xattr.height) {
|
||||
return capture_e::reinit;
|
||||
}
|
||||
|
||||
|
||||
XImage *img { XGetImage(
|
||||
xdisplay.get(),
|
||||
xwindow,
|
||||
|
0
sunshine/round_robin.h
Executable file → Normal file
0
sunshine/round_robin.h
Executable file → Normal file
@ -494,8 +494,11 @@ void controlBroadcastThread(safe::signal_t *shutdown_event, control_server_t *se
|
||||
|
||||
server->send(std::string_view {(char*)payload.data(), payload.size()});
|
||||
|
||||
shutdown_event->raise(true);
|
||||
continue;
|
||||
auto lg = server->_map_addr_session.lock();
|
||||
for(auto pos = std::begin(*server->_map_addr_session); pos != std::end(*server->_map_addr_session); ++pos) {
|
||||
auto session = pos->second.second;
|
||||
session->shutdown_event.raise(true);
|
||||
}
|
||||
}
|
||||
|
||||
server->iterate(500ms);
|
||||
|
Loading…
x
Reference in New Issue
Block a user