History

locking attempt #2

HifiExperiments committed 2 years ago

Commit 98c11ce1 parent 6a180b13 files · +126 −70Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+1−3
@@ -1924,9 +1924,7 @@ bool EntityScriptingInterface::restartSound(const QUuid& entityID) { · 1923 unmodified lines
1924 auto soundEntity = std::dynamic_pointer_cast<SoundEntityItem>(entity);1924 auto soundEntity = std::dynamic_pointer_cast<SoundEntityItem>(entity);
1925 bool isPlaying = soundEntity->getPlaying();1925 bool isPlaying = soundEntity->getPlaying();
1926 if (isPlaying) {1926 if (isPlaying) {
1927 soundEntity->withWriteLock([&] {1927 soundEntity->restartSound(true);
1928 soundEntity->restartSound();
1929 });
1930 }1928 }
1931 return isPlaying;1929 return isPlaying;
1932 }1930 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t