Skip to content

Commit 4acfc6b

Browse files
author
Peter Thor
committed
Changed method name from OnApplicationQuit() to OnDestroy(). Fixes bug where platform is used on prefab and connection does not get shut down, resulting in multiple server connections.
1 parent 5c1837d commit 4acfc6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Runtime/Scripts/OmnideckInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ virtual public void Start()
222222
}
223223

224224
// Shut down the connection to Omnideck
225-
void OnApplicationQuit() {
225+
void OnDestroy()
226226
if (CloseOmnitrackConnection() == 0)
227227
{
228228
if (debugLevel != LogLevel.None)

0 commit comments

Comments
 (0)