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
19241924 auto soundEntity = std::dynamic_pointer_cast<SoundEntityItem>(entity);
19251925 bool isPlaying = soundEntity->getPlaying();
19261926 if (isPlaying) {
1927− soundEntity->withWriteLock([&] {
1928− soundEntity->restartSound();
1929− });
1927+ soundEntity->restartSound(true);
19301928 }
19311929 return isPlaying;
19321930 }

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